/**
 * FloralDream 主题样式
 * 清新优雅的博客主题
 * 支持浏览器：Chrome, Firefox, Safari, Edge, IE11+
 */

/* ============================================
   0. Browser Compatibility & Resets
   ============================================ */
*, *::before, *::after {
    box-sizing: -webkit-box-sizing;
    box-sizing: -moz-box-sizing;
    box-sizing: box-sizing;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

:root {
    --floral-primary: #e91e8c;
    --floral-primary-light: #f8bbd9;
    --floral-primary-dark: #c2185b;
    --floral-secondary: #f48fb1;
    --floral-bg: #fff5f8;
    --floral-bg-alt: #fff0f3;
    --floral-text: #4a4a4a;
    --floral-text-light: #888;
    --floral-border: #f8bbd9;
    --floral-shadow: rgba(233, 30, 140, 0.1);
    --floral-accent: #e91e8c;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    background-color: var(--floral-bg);
    color: var(--floral-text);
    line-height: 1.8;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* IE11 Flexbox Fix */
.floral-header-inner,
.floral-nav,
.floral-menu {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
}

.floral-header-inner {
    -webkit-flex-wrap: nowrap;
    -ms-flex-wrap: nowrap;
    flex-wrap: nowrap;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -moz-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
    -moz-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
}

.floral-nav {
    -webkit-box-flex: 1;
    -webkit-flex: 1;
    -moz-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    -webkit-box-pack: end;
    -webkit-justify-content: flex-end;
    -moz-box-pack: end;
    -ms-flex-pack: end;
    justify-content: flex-end;
    -webkit-flex-wrap: nowrap;
    -ms-flex-wrap: nowrap;
    flex-wrap: nowrap;
}

.floral-menu {
    -webkit-flex-wrap: nowrap;
    -ms-flex-wrap: nowrap;
    flex-wrap: nowrap;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -moz-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

a {
    color: #e91e8c;
    color: var(--floral-primary, #e91e8c);
    text-decoration: none;
    -webkit-transition: color 0.3s ease;
    -moz-transition: color 0.3s ease;
    -ms-transition: color 0.3s ease;
    -o-transition: color 0.3s ease;
    transition: color 0.3s ease;
}

a:hover {
    color: #c2185b;
    color: var(--floral-primary-dark, #c2185b);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

input, textarea {
    font-family: inherit;
    font-size: inherit;
}

/* ============================================
   1. CSS Variables & Color Schemes
   ============================================ */

/* Rose (Default) */
.color-rose {
    --floral-primary: #e91e8c;
    --floral-primary-light: #f8bbd9;
    --floral-primary-dark: #c2185b;
    --floral-secondary: #f48fb1;
    --floral-bg: #fff5f8;
    --floral-bg-alt: #fff0f5;
    --floral-text: #4a4a4a;
    --floral-text-light: #888;
    --floral-border: #f8bbd9;
    --floral-shadow: rgba(233, 30, 140, 0.1);
    --floral-accent: #ff6b9d;
}

/* Sakura */
.color-sakura {
    --floral-primary: #ffb7c5;
    --floral-primary-light: #ffe4e8;
    --floral-primary-dark: #e8909c;
    --floral-secondary: #ffd6dd;
    --floral-bg: #fff9fa;
    --floral-bg-alt: #fff0f2;
    --floral-text: #5a5a5a;
    --floral-text-light: #999;
    --floral-border: #ffd6dd;
    --floral-shadow: rgba(255, 183, 197, 0.15);
    --floral-accent: #ff8fa3;
}

/* Lavender */
.color-lavender {
    --floral-primary: #9c27b0;
    --floral-primary-light: #e1bee7;
    --floral-primary-dark: #7b1fa2;
    --floral-secondary: #ce93d8;
    --floral-bg: #faf5ff;
    --floral-bg-alt: #f3e5f5;
    --floral-text: #4a4a4a;
    --floral-text-light: #888;
    --floral-border: #e1bee7;
    --floral-shadow: rgba(156, 39, 176, 0.1);
    --floral-accent: #ba68c8;
}

/* Mint */
.color-mint {
    --floral-primary: #00897b;
    --floral-primary-light: #b2dfdb;
    --floral-primary-dark: #00695c;
    --floral-secondary: #80cbc4;
    --floral-bg: #f0faf9;
    --floral-bg-alt: #e0f2f1;
    --floral-text: #4a4a4a;
    --floral-text-light: #888;
    --floral-border: #b2dfdb;
    --floral-shadow: rgba(0, 137, 123, 0.1);
    --floral-accent: #26a69a;
}

/* Peach */
.color-peach {
    --floral-primary: #ff7043;
    --floral-primary-light: #ffccbc;
    --floral-primary-dark: #e64a19;
    --floral-secondary: #ffab91;
    --floral-bg: #fff8f5;
    --floral-bg-alt: #fbe9e7;
    --floral-text: #4a4a4a;
    --floral-text-light: #888;
    --floral-border: #ffccbc;
    --floral-shadow: rgba(255, 112, 67, 0.1);
    --floral-accent: #ff8a65;
}

/* Sky */
.color-sky {
    --floral-primary: #03a9f4;
    --floral-primary-light: #b3e5fc;
    --floral-primary-dark: #0288d1;
    --floral-secondary: #81d4fa;
    --floral-bg: #f5fbff;
    --floral-bg-alt: #e1f5fe;
    --floral-text: #4a4a4a;
    --floral-text-light: #888;
    --floral-border: #b3e5fc;
    --floral-shadow: rgba(3, 169, 244, 0.1);
    --floral-accent: #29b6f6;
}

/* Dark Mode */
.dark-mode {
    --floral-bg: #1a1a2e;
    --floral-bg-alt: #16213e;
    --floral-text: #e0e0e0;
    --floral-text-light: #888899;
    --floral-border: #333344;
    --floral-shadow: rgba(0, 0, 0, 0.3);
}

.dark-mode .article-card,
.dark-mode .floral-side-card,
.dark-mode .floral-header {
    background: var(--floral-bg-alt) !important;
}

.dark-mode .floral-header {
    background: rgba(22, 33, 62, 0.95) !important;
    backdrop-filter: blur(20px);
}

.dark-mode .floral-nav-link:hover,
.dark-mode .floral-nav-link.active {
    color: var(--floral-primary-light) !important;
}

.dark-mode .search-box {
    background: var(--floral-bg) !important;
    border-color: var(--floral-border) !important;
}

.dark-mode .search-box::placeholder {
    color: var(--floral-text-light) !important;
}

.dark-mode .tag-item {
    background: rgba(0, 0, 0, 0.2) !important;
    border-color: var(--floral-border) !important;
}

.dark-mode .tag-item:hover {
    background: rgba(0, 0, 0, 0.3) !important;
}

.dark-mode .article-card-title,
.dark-mode .floral-side-title {
    color: var(--floral-text) !important;
}

.dark-mode .floral-widget {
    background: var(--floral-bg-alt) !important;
}

.dark-mode .article-card-excerpt,
.dark-mode .article-card-meta {
    color: var(--floral-text-light) !important;
}

.dark-mode .floral-nav-link {
    color: var(--floral-text) !important;
}

.dark-mode .floral-logo {
    color: var(--floral-primary) !important;
}

/* ============================================
   2. Reset & Base Styles
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background-color: var(--floral-bg);
    color: var(--floral-text);
    line-height: 1.8;
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    color: var(--floral-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--floral-primary-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

input, textarea {
    font-family: inherit;
    font-size: inherit;
}

/* ============================================
   3. Layout
   ============================================ */
.floral-body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.floral-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--floral-bg);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--floral-border);
    box-shadow: var(--floral-shadow);
}

.floral-header::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--floral-primary), transparent);
    opacity: 0.6;
}

.floral-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
}

.floral-header-inner > * {
    padding: 0 1.5rem;
}

.floral-logo {
    position: relative;
}

.floral-logo a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: transform 0.3s ease;
}

.floral-logo a:hover {
    transform: scale(1.02);
}

.floral-logo img {
    height: 45px;
    border-radius: 10px;
    box-shadow: var(--floral-shadow);
}

.floral-logo .logo-text {
    font-size: 1.6rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--floral-primary) 0%, var(--floral-primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 3px;
}

.floral-main {
    flex: 1;
    padding: 2rem 0;
}

.floral-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.floral-container.sidebar-left {
    flex-direction: row-reverse;
}

.layout-full .floral-container {
    max-width: 100%;
}

.layout-narrow .floral-container {
    max-width: 1000px;
}

.layout-narrow .floral-header-inner {
    max-width: 1000px;
}

.floral-content {
    min-width: 0;
    flex: 1;
    min-width: 300px;
    max-width: 100%;
    overflow: hidden;
}

.floral-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
    width: 300px;
    min-width: 280px;
    max-width: 350px;
    flex-shrink: 0;
}

/* ============================================
   4. Navigation
   ============================================ */
.floral-nav {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: flex-end;
    flex-wrap: nowrap;
    position: static;
    background: transparent;
    box-shadow: none;
    padding: 0;
}

.floral-menu {
    display: flex;
    gap: 0.25rem;
    flex-wrap: nowrap;
    list-style: none;
    margin: 0;
    padding: 0;
    white-space: nowrap;
    flex-direction: row;
}

.floral-menu-item {
    position: relative;
    display: inline-block;
}

.floral-menu-link {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--floral-text);
    font-size: 0.95rem;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.floral-menu-link:hover,
.floral-menu-link.active {
    color: var(--floral-primary);
    background: var(--floral-primary-light);
}

.floral-menu-item.has-sub .floral-menu-link::after {
    content: '▼';
    font-size: 0.6rem;
    margin-left: 0.3rem;
    vertical-align: middle;
}

.floral-submenu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 160px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px var(--floral-shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    padding: 0.5rem;
}

.floral-menu-item.has-sub:hover .floral-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.floral-submenu-item {
    margin: 0.2rem 0;
}

.floral-submenu-link {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--floral-text);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.floral-submenu-link:hover {
    background: var(--floral-primary-light);
    color: var(--floral-primary);
}

/* Mobile Menu Toggle */
.floral-menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--floral-primary-light);
    position: relative;
}

.menu-icon {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--floral-primary);
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.menu-icon::before,
.menu-icon::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 2px;
    background: var(--floral-primary);
    left: 0;
    transition: all 0.3s ease;
}

.menu-icon::before { top: -6px; }
.menu-icon::after { top: 6px; }

/* ============================================
   5. Decorative Elements
   ============================================ */
.floral-decorations {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.petal {
    position: absolute;
    width: 15px;
    height: 15px;
    background: linear-gradient(135deg, var(--floral-primary-light), var(--floral-secondary));
    border-radius: 50% 0 50% 50%;
    opacity: 0.6;
    animation: petalFall linear infinite;
}

.petal-1 { left: 10%; animation-duration: 15s; animation-delay: 0s; }
.petal-2 { left: 25%; animation-duration: 18s; animation-delay: 2s; }
.petal-3 { left: 45%; animation-duration: 12s; animation-delay: 4s; }
.petal-4 { left: 65%; animation-duration: 20s; animation-delay: 1s; }
.petal-5 { left: 85%; animation-duration: 16s; animation-delay: 3s; }

@keyframes petalFall {
    0% { transform: translateY(-10vh) rotate(0deg); opacity: 0; }
    10% { opacity: 0.6; }
    90% { opacity: 0.6; }
    100% { transform: translateY(110vh) rotate(360deg); opacity: 0; }
}

.butterfly {
    position: absolute;
    width: 30px;
    height: 30px;
    animation: butterflyFly ease-in-out infinite;
}

.butterfly::before,
.butterfly::after {
    content: '';
    position: absolute;
    width: 14px;
    height: 22px;
    background: linear-gradient(135deg, var(--floral-primary-light) 0%, var(--floral-secondary) 100%);
    border-radius: 50% 50% 50% 0;
    animation: butterflyWing 0.15s ease-in-out infinite alternate;
    box-shadow: var(--floral-shadow);
}

.butterfly::before {
    left: 0;
}

.butterfly::after {
    right: 0;
    transform: scaleX(-1);
    animation-delay: 0.1s;
}

.butterfly-1 { left: 10%; top: 15%; animation-duration: 12s; }
.butterfly-2 { left: 30%; top: 25%; animation-duration: 15s; animation-delay: 3s; }
.butterfly-3 { right: 25%; top: 20%; animation-duration: 10s; animation-delay: 1s; }
.butterfly-4 { right: 10%; top: 35%; animation-duration: 14s; animation-delay: 5s; }

@keyframes butterflyFly {
    0%, 100% { transform: translate(0, 0) rotate(-10deg); }
    25% { transform: translate(80px, -50px) rotate(10deg); }
    50% { transform: translate(150px, 20px) rotate(-10deg); }
    75% { transform: translate(80px, 60px) rotate(10deg); }
}

@keyframes butterflyWing {
    0% { transform: rotateY(0deg); }
    100% { transform: rotateY(70deg); }
}

/* 丝带装饰 */
.ribbon {
    position: absolute;
    width: 80px;
    height: 200px;
    background: linear-gradient(180deg, var(--floral-primary-light) 0%, var(--floral-secondary) 50%, var(--floral-primary-light) 100%);
    opacity: 0.4;
    z-index: 1;
}

.ribbon::before,
.ribbon::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 80px;
    background: inherit;
}

.ribbon::before {
    bottom: -40px;
    clip-path: polygon(0 0, 100% 0, 50% 100%);
}

.ribbon::after {
    top: -40px;
    clip-path: polygon(0 100%, 100% 100%, 50% 0);
}

.ribbon-left {
    left: 0;
    top: 80px;
    border-radius: 0 40px 40px 0;
    transform: skewY(-8deg);
    animation: ribbonSway 8s ease-in-out infinite;
}

.ribbon-right {
    right: 0;
    top: 150px;
    border-radius: 40px 0 0 40px;
    transform: skewY(8deg);
    animation: ribbonSway 8s ease-in-out infinite reverse;
    animation-delay: 2s;
}

@keyframes ribbonSway {
    0%, 100% { transform: skewY(-8deg) translateX(0); }
    50% { transform: skewY(-5deg) translateX(10px); }
}

/* ============================================
   6. Sections & Cards
   ============================================ */
.floral-section {
    margin-bottom: 2.5rem;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--floral-border);
}

.section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--floral-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-title i {
    font-size: 1.1rem;
}

.section-more {
    font-size: 0.875rem;
    color: var(--floral-text-light);
    transition: color 0.3s ease;
}

.section-more:hover {
    color: var(--floral-primary);
}

/* ============================================
   7. Slide Show
   ============================================ */
.floral-slide {
    margin-bottom: 2.5rem;
}

.slide-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px var(--floral-shadow);
}

.slide-container {
    position: relative;
    height: 350px;
}

.slide-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.slide-item.active {
    opacity: 1;
}

.slide-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem 1.5rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.5));
    color: #fff;
    font-size: 1.25rem;
    font-weight: 500;
}

.slide-nav {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.slide-prev,
.slide-next {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.8);
    color: var(--floral-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.slide-prev:hover,
.slide-next:hover {
    background: var(--floral-primary);
    color: #fff;
}

.slide-dots {
    display: flex;
    gap: 0.5rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--floral-primary);
    transform: scale(1.2);
}

/* ============================================
   8. Article Cards
   ============================================ */
.article-grid {
    display: grid;
    gap: 1.5rem;
}

/* 卡片式 - 多列自适应卡片 */
.article-grid.style-card {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.article-grid.style-card .article-card {
    display: flex;
    flex-direction: column;
}

/* 列表式 - 单列横向布局 */
.article-grid.style-list {
    grid-template-columns: 1fr;
}

.article-grid.style-list .article-card {
    display: flex;
    flex-direction: row;
    align-items: stretch;
}

.article-grid.style-list .article-card-link {
    display: flex;
    width: 100%;
}

.article-grid.style-list .article-card-cover {
    width: 280px;
    min-width: 280px;
    height: auto;
    min-height: 200px;
    border-bottom: none;
    border-right: 3px solid var(--floral-primary);
}

.article-grid.style-list .article-card-cover img {
    height: 100%;
    min-height: 200px;
}

.article-grid.style-list .article-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.article-grid.style-list .article-card-title {
    font-size: 1.25rem;
}

.article-grid.style-list .article-card-excerpt {
    -webkit-line-clamp: 3;
}

/* 瀑布流 - 多列瀑布流布局 */
.article-grid.style-masonry {
    column-count: 2;
    column-gap: 1.5rem;
    display: block;
}

.article-grid.style-masonry .article-card {
    break-inside: avoid;
    margin-bottom: 1.5rem;
    display: block;
}

.article-grid.style-masonry .article-card-link {
    display: block;
}

.article-grid.style-masonry .article-card-cover {
    height: auto;
    position: relative;
}

.article-grid.style-masonry .article-card-cover img {
    height: auto;
    min-height: 150px;
}

.article-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px var(--floral-shadow);
    transition: all 0.4s ease;
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px var(--floral-shadow);
}

.article-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.article-card-cover {
    position: relative;
    height: 180px;
    overflow: hidden;
    border-bottom: 3px solid var(--floral-primary);
    background: linear-gradient(135deg, var(--floral-bg-alt) 0%, var(--floral-primary-light) 100%);
}

.article-card-cover::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.8), transparent);
    pointer-events: none;
}

.article-card-cover img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    object-position: center center;
    transition: transform 0.5s ease;
    display: block;
}

.article-card:hover .article-card-cover img {
    transform: scale(1.08);
}

.article-card-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.25rem 0.75rem;
    background: var(--floral-primary);
    color: #fff;
    font-size: 0.75rem;
    border-radius: 20px;
    z-index: 1;
}

.article-card-body {
    padding: 1.25rem;
}

.article-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--floral-text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-shrink: 0;
}

.article-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--floral-text-light);
    margin-bottom: 0.75rem;
    flex-shrink: 0;
}

.article-card-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.article-card-excerpt {
    font-size: 0.9rem;
    color: var(--floral-text-light);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0.75rem;
    flex: 1;
}

.article-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    flex-shrink: 0;
}

/* 文章卡片动画状态 */
.article-card.animated,
.featured-item.animated,
.post-item.animated,
.floral-widget.animated {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* ============================================
   9. Post List (List Style)
   ============================================ */
.post-list-item {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px var(--floral-shadow);
    margin-bottom: 1.5rem;
    transition: all 0.4s ease;
}

.post-list-item:hover {
    transform: translateX(8px);
    box-shadow: 0 8px 30px var(--floral-shadow);
}

.post-list-link {
    display: flex;
    gap: 1.5rem;
    padding: 1.25rem;
    color: inherit;
}

.post-list-cover {
    flex-shrink: 0;
    width: 200px;
    height: 140px;
    border-radius: 12px;
    overflow: hidden;
}

.post-list-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.post-list-item:hover .post-list-cover img {
    transform: scale(1.08);
}

.post-list-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.post-list-title {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--floral-text);
}

.post-list-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--floral-text-light);
    margin-bottom: 0.5rem;
}

.post-list-excerpt {
    font-size: 0.9rem;
    color: var(--floral-text-light);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============================================
   10. Featured Section
   ============================================ */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.featured-item {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px var(--floral-shadow);
    transition: all 0.4s ease;
}

.featured-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px var(--floral-shadow);
}

.featured-link {
    display: block;
    color: inherit;
}

.featured-cover {
    height: 150px;
    overflow: hidden;
}

.featured-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.featured-item:hover .featured-cover img {
    transform: scale(1.08);
}

.featured-info {
    padding: 1rem;
}

.featured-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-date {
    font-size: 0.8rem;
    color: var(--floral-text-light);
}

/* ============================================
   11. Category Section
   ============================================ */
.category-block {
    margin-bottom: 2rem;
}

.category-posts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.post-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px var(--floral-shadow);
    transition: all 0.3s ease;
}

.post-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px var(--floral-shadow);
}

.post-link {
    display: block;
    color: inherit;
}

.post-cover {
    height: 100px;
    overflow: hidden;
}

.post-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.post-item:hover .post-cover img {
    transform: scale(1.1);
}

.post-info {
    padding: 0.75rem;
}

.post-title {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-date {
    font-size: 0.75rem;
    color: var(--floral-text-light);
}

/* ============================================
   12. Hot & Recent Posts
   ============================================ */
.hot-list,
.recent-posts ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.hot-item,
.recent-posts li {
    background: #fff;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    box-shadow: 0 2px 10px var(--floral-shadow);
    transition: all 0.3s ease;
}

.hot-item:hover,
.recent-posts li:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px var(--floral-shadow);
}

.hot-link,
.recent-posts a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: inherit;
}

.hot-rank {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--floral-secondary);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 50%;
    flex-shrink: 0;
}

.hot-rank.top {
    background: var(--floral-primary);
}

.hot-title {
    font-size: 0.9rem;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============================================
   13. Tag Cloud
   ============================================ */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tag-cloud-item {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: var(--floral-primary-light);
    color: var(--floral-primary-dark);
    font-size: 0.85rem;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.tag-cloud-item:hover {
    background: var(--floral-primary);
    color: #fff;
    transform: translateY(-2px);
}

/* ============================================
   14. Breadcrumb
   ============================================ */
.floral-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: var(--floral-text-light);
}

.breadcrumb-home {
    color: var(--floral-primary);
}

.breadcrumb-sep {
    color: var(--floral-border);
}

.breadcrumb-current {
    color: var(--floral-text-light);
}

/* ============================================
   15. Single Article Page
   ============================================ */
.floral-article {
    background: var(--floral-bg-alt);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 4px 30px var(--floral-shadow);
    margin-bottom: 2rem;
    max-width: 100%;
    overflow: hidden;
}

.article-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--floral-border);
}

.article-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--floral-text);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: var(--floral-text-light);
    margin-bottom: 1rem;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.article-category {
    display: flex;
    gap: 0.5rem;
}

.article-category a {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--floral-primary-light);
    color: var(--floral-primary);
    font-size: 0.8rem;
    border-radius: 20px;
}

.article-content {
    font-size: 1rem;
    line-height: 2;
    color: var(--floral-text);
    margin-bottom: 2rem;
    overflow: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* 文章内容中所有元素都要限制最大宽度 */
.article-content * {
    max-width: 100%;
}

.article-content p {
    margin-bottom: 1.25rem;
}

.article-content img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 12px;
    margin: 1.5rem auto;
    box-shadow: 0 4px 20px var(--floral-shadow);
    display: block;
}

/* 文章封面图样式 */
.article-cover {
    max-width: 100%;
    margin-bottom: 1.5rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px var(--floral-shadow);
}

.article-cover img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
}

.article-content h2,
.article-content h3,
.article-content h4 {
    color: var(--floral-primary);
    margin: 1.5rem 0 1rem;
}

.article-content a {
    color: var(--floral-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.article-content blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    background: var(--floral-bg-alt);
    border-left: 4px solid var(--floral-primary);
    border-radius: 0 12px 12px 0;
    font-style: italic;
}

.article-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--floral-border);
}

.article-tags i {
    color: var(--floral-text-light);
}

.article-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--floral-primary-light);
    color: var(--floral-primary-dark);
    font-size: 0.8rem;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.article-tag:hover {
    background: var(--floral-primary);
    color: #fff;
}

.article-share {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.share-label {
    font-size: 0.9rem;
    color: var(--floral-text-light);
}

.share-btn {
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #fff;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.share-btn.weibo { background: #e6162d; }
.share-btn.wechat { background: #07c160; }
.share-btn.qq { background: #1296db; }

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.share-qr-modal {
    font-family: inherit;
}

.share-qr-wrapper {
    position: relative;
}

.share-qr-box {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
    margin-bottom: 10px;
    width: 200px;
}

.share-qr-box::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: #fff;
}

.share-qr-wrapper:hover .share-qr-box {
    opacity: 1;
    visibility: visible;
}

.share-qr-tit {
    font-size: 14px;
    color: #333;
    margin: 0 0 10px 0;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
}

.share-qr-code {
    display: inline-block;
}

.share-qr-code img,
.share-qr-code canvas {
    width: 160px;
    height: 160px;
    display: block;
}

.share-qr-tip {
    font-size: 12px;
    color: #999;
    margin: 10px 0 0 0;
    line-height: 1.4;
    white-space: nowrap;
}

.article-neighbor {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--floral-border);
}

.neighbor-article {
    flex: 1;
    padding: 1rem;
    background: var(--floral-bg-alt);
    border-radius: 12px;
}

.neighbor-label {
    display: block;
    font-size: 0.75rem;
    color: var(--floral-text-light);
    margin-bottom: 0.5rem;
}

.neighbor-article a {
    font-size: 0.9rem;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.neighbor-none {
    font-size: 0.9rem;
    color: var(--floral-text-light);
}

/* ============================================
   16. Comments
   ============================================ */
.floral-comments {
    background: #fff;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 4px 30px var(--floral-shadow);
}

.comments-header {
    margin-bottom: 1.5rem;
}

.comments-title {
    font-size: 1.2rem;
    color: var(--floral-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.comments-count {
    font-size: 0.9rem;
    color: var(--floral-text-light);
    font-weight: normal;
}

.floral-comments-list {
    margin-bottom: 2rem;
}

.comment-item {
    display: flex;
    gap: 1rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--floral-border);
}

.comment-item:last-child {
    border-bottom: none;
}

.comment-children {
    margin-left: 3rem;
    padding-left: 1rem;
    border-left: 2px solid var(--floral-border);
}

.comment-child {
    padding: 1rem 0;
}

.comment-avatar {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--floral-primary-light);
}

.comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comment-body {
    flex: 1;
    min-width: 0;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.commenter-name,
.comment-author {
    font-weight: 600;
    color: var(--floral-text);
}

.comment-badge {
    padding: 0.15rem 0.5rem;
    background: var(--floral-primary);
    color: #fff;
    font-size: 0.7rem;
    border-radius: 10px;
}

.comment-time {
    font-size: 0.8rem;
    color: var(--floral-text-light);
}

.comment-content {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

.comment-actions a {
    font-size: 0.85rem;
    color: var(--floral-text-light);
    transition: color 0.3s ease;
}

.comment-actions a:hover {
    color: var(--floral-primary);
}

.comment-page {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--floral-border);
}

/* Comment Form */
.floral-comment-form {
    margin-bottom: 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--floral-border);
    border-radius: 12px;
    font-size: 0.95rem;
    transition: border-color 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--floral-primary);
}

.form-textarea {
    margin-bottom: 1rem;
}

.form-textarea textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--floral-border);
    border-radius: 12px;
    font-size: 0.95rem;
    resize: vertical;
    min-height: 120px;
    transition: border-color 0.3s ease;
}

.form-textarea textarea:focus {
    outline: none;
    border-color: var(--floral-primary);
}

.form-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.verify-code {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.verify-code img,
.captcha {
    height: 40px;
    width: 120px;
    border-radius: 8px;
    cursor: pointer;
    border: 1px solid var(--floral-border);
    display: block;
}

.captcha_input {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--floral-border);
    border-radius: 8px;
    font-size: 0.9rem;
    width: 100px;
    transition: border-color 0.3s ease;
}

.captcha_input:focus {
    outline: none;
    border-color: var(--floral-primary);
}

.submit-btn {
    padding: 0.75rem 2rem;
    background: var(--floral-primary);
    color: #fff;
    font-size: 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: var(--floral-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--floral-shadow);
}

.comments-closed {
    padding: 2rem;
    text-align: center;
    color: var(--floral-text-light);
    background: var(--floral-bg-alt);
    border-radius: 12px;
}

/* ============================================
   17. Sidebar Widgets
   ============================================ */
.floral-widget {
    background: #fff;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 20px var(--floral-shadow);
}

.widget-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--floral-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--floral-border);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Hot Posts Widget */
.hot-posts ul {
    display: flex;
    flex-direction: column;
}

.hot-posts li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--floral-border);
    transition: all 0.3s ease;
}

.hot-posts li:last-child {
    border-bottom: none;
}

.hot-posts li:hover {
    padding-left: 0.5rem;
}

.hot-posts li a {
    display: block;
    color: var(--floral-text);
    font-size: 0.95rem;
    line-height: 1.5;
    transition: color 0.3s ease;
}

.hot-posts li:hover a {
    color: var(--floral-primary);
}

/* Blogger Widget */
.blogger-info {
    text-align: center;
}

.blogger-avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--floral-primary-light);
}

.blogger-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blogger-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.blogger-bio {
    font-size: 0.9rem;
    color: var(--floral-text-light);
    margin-bottom: 1rem;
}

.blogger-stats {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    font-size: 0.85rem;
    color: var(--floral-text-light);
}

.blogger-stats span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* Tag Widget */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: center;
}

.tag-item {
    display: block;
    padding: 0.5rem 0.75rem;
    background: var(--floral-bg-alt);
    border-radius: 8px;
    color: var(--floral-text);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.tag-item:hover {
    background: var(--floral-primary-light);
    color: var(--floral-primary);
    transform: translateX(5px);
}

/* Category Widget */
.category-list ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.category-list li {
    position: relative;
}

.category-list > ul > li > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 0.75rem;
    background: var(--floral-bg-alt);
    border-radius: 10px;
    color: var(--floral-text);
    transition: all 0.3s ease;
}

.category-list > ul > li > a:hover {
    background: var(--floral-primary-light);
    color: var(--floral-primary);
}

.category-icon {
    width: 8px;
    height: 8px;
    background: var(--floral-primary);
    border-radius: 50%;
    margin-right: 0.5rem;
}

.category-count {
    font-size: 0.75rem;
    color: var(--floral-text-light);
}

.children {
    margin-left: 1.5rem;
    margin-top: 0.3rem;
}

.children li a {
    display: block;
    padding: 0.4rem 0.75rem;
    color: var(--floral-text-light);
    font-size: 0.9rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.children li a:hover {
    background: var(--floral-primary-light);
    color: var(--floral-primary);
}

/* 分类折叠功能 */
.category-item .category-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 0.75rem;
    background: var(--floral-bg-alt);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.category-item .category-row:hover {
    background: var(--floral-primary-light);
}

.category-item .category-row a {
    flex: 1;
    display: flex;
    align-items: center;
    color: var(--floral-text);
    transition: color 0.3s ease;
}

.category-item .category-row:hover a {
    color: var(--floral-primary);
}

.category-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    cursor: pointer;
    color: var(--floral-text-light);
    transition: all 0.3s ease;
    border-radius: 50%;
    margin-left: 0.5rem;
}

.category-toggle:hover {
    background: var(--floral-primary);
    color: #fff;
}

.category-toggle svg {
    transition: transform 0.3s ease;
}

.category-toggle[data-expanded="true"] svg {
    transform: rotate(180deg);
}

.category-item .children {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease, margin 0.3s ease;
    margin-top: 0;
}

.category-item.expanded .children {
    max-height: 1000px;
    opacity: 1;
    margin-top: 0.3rem;
}

/* Recent Comments Widget */
.recent-comments ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.recent-comments li a {
    display: block;
    padding: 0.75rem;
    background: var(--floral-bg-alt);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.recent-comments li a:hover {
    background: var(--floral-primary-light);
}

.commenter {
    font-weight: 600;
    color: var(--floral-primary);
    display: block;
    margin-bottom: 0.25rem;
}

.comment-text {
    font-size: 0.85rem;
    color: var(--floral-text);
    display: block;
    margin-bottom: 0.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.comment-date {
    font-size: 0.75rem;
    color: var(--floral-text-light);
}

/* Search Widget */
.search-form {
    display: flex;
    gap: 0.5rem;
}

.search-input {
    flex: 1;
    padding: 0.6rem 1rem;
    border: 2px solid var(--floral-border);
    border-radius: 20px;
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--floral-primary);
}

.search-btn {
    width: 40px;
    height: 40px;
    background: var(--floral-primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: var(--floral-primary-dark);
    transform: scale(1.05);
}

/* Archive & Link Widgets */
.archive-list ul,
.friend-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.archive-list li a,
.friend-links li a {
    display: block;
    padding: 0.5rem 0.75rem;
    background: var(--floral-bg-alt);
    border-radius: 8px;
    color: var(--floral-text);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.archive-list li a:hover,
.friend-links li a:hover {
    background: var(--floral-primary-light);
    color: var(--floral-primary);
    transform: translateX(5px);
}

/* ============================================
   18. Pagination
   ============================================ */
.floral-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.page-btn,
.page-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 1rem;
    background: #fff;
    border: 2px solid var(--floral-border);
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--floral-text);
    transition: all 0.3s ease;
}

.page-btn:hover,
.page-num:hover {
    background: var(--floral-primary);
    border-color: var(--floral-primary);
    color: #fff;
}

.page-current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 1rem;
    background: var(--floral-primary);
    border: 2px solid var(--floral-primary);
    border-radius: 20px;
    font-size: 0.9rem;
    color: #fff;
}

/* ============================================
   19. Empty State
   ============================================ */
.floral-empty {
    text-align: center;
    padding: 4rem 2rem;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 30px var(--floral-shadow);
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.empty-text {
    font-size: 1.25rem;
    color: var(--floral-primary);
    margin-bottom: 0.5rem;
}

.empty-hint {
    font-size: 0.9rem;
    color: var(--floral-text-light);
}

/* ============================================
   20. Footer
   ============================================ */
.floral-footer {
    background: #fff;
    border-top: 1px solid var(--floral-border);
    padding: 2rem 0;
    margin-top: 3rem;
}

.floral-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    text-align: center;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.social-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1.5px solid #e91e63;
    border-radius: 50%;
    transition: all 0.3s ease;
    position: relative;
    text-decoration: none;
    overflow: visible;
    cursor: pointer;
}

.social-icon-img {
    width: 22px;
    height: 22px;
    display: block;
}

.social-link:hover {
    border-color: var(--floral-primary);
    background: rgba(233, 30, 99, 0.05);
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.2);
}

.social-qr {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    padding: 8px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    pointer-events: none;
    z-index: 9999;
    border: 1px solid #eee;
    white-space: nowrap;
}

.social-qr img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    display: block !important;
    max-width: none;
}

.social-link:hover .social-qr {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    bottom: calc(100% + 15px);
}

/* 微信二维码弹窗 */
.wechat-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.wechat-modal.show {
    display: flex;
}

.wechat-modal-content {
    background: #fff;
    padding: 2rem;
    border-radius: 16px;
    max-width: 300px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.wechat-modal-content img {
    width: 200px;
    height: 200px;
    object-fit: contain;
    margin-bottom: 1rem;
}

.wechat-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    color: #333;
    transition: all 0.3s ease;
}

.wechat-modal-close:hover {
    background: #fff;
    transform: scale(1.1);
}

.footer-copyright {
    font-size: 0.9rem;
    color: var(--floral-text-light);
    margin-bottom: 0.5rem;
}

.footer-copyright a {
    color: var(--floral-primary);
}

.footer-ads {
    margin-top: 1rem;
}

/* ============================================
   21. Back to Top & Theme Toggle
   ============================================ */
.floral-backtop {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    background: var(--floral-primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s ease;
    box-shadow: 0 4px 20px var(--floral-shadow);
    z-index: 999;
}

.backtop-icon {
    line-height: 1;
    font-weight: bold;
}

.floral-backtop.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.floral-backtop:hover {
    background: var(--floral-primary-dark);
    transform: translateY(-4px);
}

.floral-theme-toggle {
    position: fixed;
    bottom: 5rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    background: var(--floral-primary-light);
    color: var(--floral-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px var(--floral-shadow);
    z-index: 999;
}

.theme-icon {
    line-height: 1;
}

.floral-theme-toggle:hover {
    background: var(--floral-primary);
    color: #fff;
    transform: rotate(20deg);
}

/* ============================================
   22. Calendar Widget
   ============================================ */
#calendarBox table {
    width: 100%;
    border-collapse: collapse;
}

#calendarBox caption {
    font-weight: 600;
    color: var(--floral-primary);
    padding: 0.5rem;
}

#calendarBox th,
#calendarBox td {
    padding: 0.5rem;
    text-align: center;
    font-size: 0.85rem;
}

#calendarBox th {
    color: var(--floral-primary);
    font-weight: 600;
}

#calendarBox td {
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
}

#calendarBox td:hover {
    background: var(--floral-primary-light);
}

#calendarBox #today {
    background: var(--floral-primary);
    color: #fff;
    font-weight: 600;
}

#calendarBox a {
    color: var(--floral-primary);
}

/* ============================================
   23. Responsive Design
   ============================================ */
@media (max-width: 1024px) {
    .floral-container {
        flex-wrap: wrap;
    }

    .floral-container.sidebar-left .floral-content,
    .floral-container.sidebar-left .floral-sidebar {
        order: unset;
    }

    .floral-sidebar {
        position: static;
    }

    .featured-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .category-posts {
        grid-template-columns: repeat(2, 1fr);
    }

    .post-list-cover {
        width: 150px;
        height: 100px;
    }
}

/* 700px断点：侧栏和内容区上下排列 */
@media (max-width: 700px) {
    .floral-container {
        flex-direction: column;
    }

    .floral-content {
        width: 100%;
        min-width: 0;
    }

    .floral-sidebar {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        position: static;
        margin-top: 1.5rem;
    }

    .floral-sidebar .floral-widget {
        margin-bottom: 1rem;
    }
}

@media (max-width: 768px) {
    .floral-header-inner {
        padding: 0.75rem 1rem;
    }

    .floral-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        padding: 1rem;
        box-shadow: 0 10px 30px var(--floral-shadow);
        border-radius: 0 0 20px 20px;
    }

    .floral-nav.active {
        display: block;
    }

    .floral-menu {
        flex-direction: column;
        gap: 0.25rem;
    }

    .floral-menu-link {
        padding: 0.75rem 1rem;
    }

    .floral-submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding-left: 1rem;
        background: var(--floral-bg-alt);
        border-radius: 10px;
        margin-top: 0.25rem;
    }

    .floral-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .floral-main {
        padding: 1rem 0;
    }

    .floral-container {
        padding: 0 1rem;
    }

    .slide-container {
        height: 250px;
    }

    .slide-caption {
        font-size: 1rem;
        padding: 1rem;
    }

    .featured-grid,
    .article-grid.style-card {
        grid-template-columns: 1fr;
    }

    .article-grid.style-masonry {
        grid-template-columns: 1fr;
    }

    .category-posts {
        grid-template-columns: 1fr 1fr;
    }

    .post-list-link {
        flex-direction: column;
    }

    .post-list-cover {
        width: 100%;
        height: 180px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .floral-article {
        padding: 1.5rem;
        border-radius: 16px;
    }

    .article-title {
        font-size: 1.5rem;
    }

    .article-meta {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .article-neighbor {
        flex-direction: column;
    }

    .floral-comments {
        padding: 1.5rem;
        border-radius: 16px;
    }

    .footer-social {
        flex-wrap: wrap;
    }

    .floral-backtop,
    .floral-theme-toggle {
        right: 1rem;
    }

    .floral-backtop {
        bottom: 1.5rem;
    }

    .floral-theme-toggle {
        bottom: 5rem;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    .floral-logo .logo-text {
        font-size: 1.25rem;
    }

    .section-title {
        font-size: 1.1rem;
    }

    .slide-container {
        height: 200px;
    }

    .slide-nav {
        display: none;
    }

    .category-posts {
        grid-template-columns: 1fr;
    }

    .floral-pagination {
        gap: 0.3rem;
    }

    .page-btn,
    .page-num,
    .page-current {
        min-width: 36px;
        height: 36px;
        padding: 0 0.75rem;
        font-size: 0.85rem;
    }
}

/* ============================================
   24. Animations
   ============================================ */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.floral-content > *,
.floral-article,
.floral-comments {
    animation: fadeIn 0.6s ease forwards;
}

/* ============================================
   25. Print Styles
   ============================================ */
@media print {
    .floral-header,
    .floral-footer,
    .floral-sidebar,
    .floral-backtop,
    .floral-theme-toggle,
    .floral-decorations,
    .article-share,
    .article-neighbor,
    .floral-comments,
    .floral-pagination {
        display: none !important;
    }

    .floral-article {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* ========================================
   首页文章列表样式
   ======================================== */

.floral-posts {
    margin-bottom: 2rem;
}

/* ========== 卡片样式 ========== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .card-grid {
        grid-template-columns: 1fr;
    }
}

.card-grid .card-item {
    background: var(--floral-bg-alt);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px var(--floral-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: block;
}

.card-grid .card-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px var(--floral-shadow);
}

.card-grid .card-item a {
    display: block;
}

.card-grid .card-cover {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.card-grid .card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    max-width: 100%;
    display: block;
}

.card-grid .card-item:hover .card-cover img {
    transform: scale(1.1);
}

.card-grid .card-date {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--floral-primary);
    color: #fff;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
}

.card-grid .card-info {
    padding: 1.2rem;
}

.card-grid .card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--floral-text);
    margin-bottom: 0.5rem;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-grid .card-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--floral-text-light);
    margin-bottom: 0.5rem;
}

.card-grid .card-excerpt {
    font-size: 0.9rem;
    color: var(--floral-text-light);
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ========== 列表样式 ========== */
.list-grid {
    display: block;
    max-width: 100%;
}

.list-grid .list-item {
    position: relative;
    background: var(--floral-bg-alt);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px var(--floral-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: block;
    width: 100%;
    margin-bottom: 1.2rem;
    box-sizing: border-box;
}

.list-grid .list-item:hover {
    transform: translateX(8px);
    box-shadow: 0 6px 20px var(--floral-shadow);
}

.list-grid .list-body {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    padding: 1.2rem;
    width: 100%;
    box-sizing: border-box;
}

.list-grid .list-cover {
    width: 240px;
    height: 160px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    display: block;
}

.list-grid .list-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    max-width: 100%;
    display: block;
}

.list-grid .list-item:hover .list-cover img {
    transform: scale(1.05);
}

.list-grid .list-content {
    flex: 1;
    min-width: 0;
    padding-left: 1.5rem;
    display: block;
    overflow: hidden;
}

.list-grid .list-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--floral-text);
    margin: 0 0 0.5rem 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.list-grid .list-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--floral-text-light);
    margin: 0 0 0.8rem 0;
    flex-wrap: wrap;
}

.list-grid .list-meta span {
    display: inline-flex;
    align-items: center;
}

.list-grid .list-excerpt {
    font-size: 0.9rem;
    color: var(--floral-text-light);
    line-height: 1.6;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    word-break: break-word;
    margin: 0;
}

.list-grid .list-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    display: block;
    text-decoration: none;
    background: transparent;
}

@media (max-width: 600px) {
    .list-grid .list-body {
        padding: 1rem;
    }
    
    .list-grid .list-cover {
        width: 120px;
        height: 120px;
    }
    
    .list-grid .list-content {
        padding-left: 1rem;
    }
    
    .list-grid .list-title {
        font-size: 1rem;
    }
}