/* ===================================
   全局基础样式 - 高端现代化风格
   =================================== */

:root {
    --bg-primary: #fff8f0;
    --bg-secondary: #ffffff;
    --bg-tertiary: #ffecd1;
    --text-primary: #2d1b00;
    --text-secondary: #8a6900;
    --text-tertiary: #b89400;
    --accent-primary: #ff6b35;
    --accent-secondary: #ff9e3d;
    --accent-success: #28a745;
    --accent-warning: #ffc107;
    --border-light: rgba(255, 107, 53, 0.15);
    --border-medium: rgba(255, 158, 61, 0.3);
    --shadow-sm: 0 2px 8px rgba(255, 107, 53, 0.1);
    --shadow-md: 0 4px 16px rgba(255, 158, 61, 0.15);
    --shadow-lg: 0 8px 32px rgba(255, 158, 61, 0.2);
    --shadow-xl: 0 12px 48px rgba(255, 107, 53, 0.25);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 24px;
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

* {
    box-sizing: border-box;
}

body {
    max-width: 660px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    margin: 0 auto;
    padding: 0;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===================================
   头部导航栏 - 现代化玻璃态设计
   =================================== */

header {
    width: 100%;
    max-width: 660px;
    display: flex;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: #ffffff;
    height: 6vh;
    z-index: 10;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
}

#nav-open {
    display: block;
    position: relative;   
    height: 3vh;
}

#nav-close {
    display: none;
    position: relative;   
    height: 4vh;
}

.wcdhl-nav-logo img {
    height: 4vh;
    display: block;
}

.wcdhl-navbar {
    display: flex;
    color: #ffffff;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0px 20px;
    position: relative;
}

.wcdhl-menu {
    display: flex;
    width: 30%;
    flex-direction: column;
    gap: 8px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: absolute;
    align-items: start;
    height: 100vh;
    top: 6vh;
    right: 0px;
    padding: 20px 1rem;
    z-index: 10;
    margin: 0;
    list-style-type: none;
    display: none;
    box-shadow: var(--shadow-lg);
    border-left: 1px solid var(--border-light);
}

.wcdhl-menu li {
    position: relative;
    width: 100%;
}

.wcdhl-menu li a {
    font-size: 0.95rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: all var(--transition-normal);
    padding: 10px 16px;
    border-radius: var(--radius-md);
    display: block;
    font-weight: 500;
}

.wcdhl-menu li a:hover {
    color: var(--accent-primary);
    background-color: rgba(108, 92, 231, 0.08);
    transform: translateX(4px);
}

.wcdhl-menu.open {
    display: flex;
    flex-direction: column;
}

.wcdhl-menu.open #nav-open {
    display: none;
}

.wcdhl-menu.open #nav-close {
    display: block;
}

#wcdhl-menu {
    animation: slideIn 0.2s ease-out;
}

@keyframes slideIn {
    0% {
        opacity: 0;
        transform: translateX(20px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===================================
   游戏卡片 - 现代化卡片设计
   =================================== */

.wcdhl-game-item {
    border-radius: var(--radius-xl);
    position: relative;
    padding: 12px;
    background: var(--bg-secondary);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    overflow: hidden;
    border: 1px solid var(--border-light);
}

.wcdhl-game-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent-primary);
}

.wcdhl-game-item a {
    text-decoration: none;
}

.wcdhl-game-cover img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: var(--radius-lg);
    display: block;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-normal);
}

.wcdhl-game-cover img:hover {
    transform: scale(1.03);
}

.wcdhl-game-cover-recommend img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: var(--radius-md);
    display: block;
}

.wcdhl-game-item h3 {
    color: var(--text-primary);
    margin: 12px 0px 6px 0px;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    letter-spacing: -0.01em;
}

.wcdhl-game-item p {
    color: var(--text-secondary);
    margin: 0px;
    font-size: 1rem;
}

.wcdhl-game-info {
    display: flex;
    justify-content: center;
    align-items: start;
    flex-direction: column;
    padding: 8px;
}

.wcdhl-game-info p {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.5em;
    max-height: 4.5em;
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.wcdhl-game-info p:last-child { 
    font-size: 0.8rem;
    color: var(--text-tertiary);
}

.common-game-right {
    display: flex;
    width: 20%;
    height: 30px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 20px;
    right: 0px;
    justify-content: center;
    align-items: center;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.common-game-right img {
    width: 16px;
    height: 16px;
}

/* ===================================
   推荐区域 - 现代化分区设计
   =================================== */

.wcdhl-recomed-div {
    margin: 0px 10px;
    border-radius: var(--radius-lg);
    padding: 16px 0px;
}

.wcdhl-detail-recomed-div {
    margin: 10px 20px;
    border-radius: var(--radius-lg);
    padding: 16px 0px;
}

.wcdhl-common-recommend-title {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: var(--radius-lg);
    position: relative;
    margin-bottom: 16px;
    box-shadow: var(--shadow-md);
}

.wcdhl-common-recommend-title p {
    color: #fff;
    font-size: 1rem;
    margin: 0;
    font-weight: 600;
    width: 100%;
    text-align: center;
    letter-spacing: 0.5px;
}

.wcdhl-common-recommend-title img {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    cursor: pointer;
    transition: transform var(--transition-fast);
    filter: brightness(0) invert(1);
}

.wcdhl-common-recommend-title img:hover {
    transform: translateY(-50%) scale(1.1);
}

.wcdhl-common-recommend-content {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.wcdhl-common-recommend-content-2 {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.wcdhl-game-big-2 {
    grid-column: span 2;
    grid-row: span 2;
}

.game-big-3 {
    grid-column: span 3;
    grid-row: span 3;
}

/* ===================================
   页脚 - 简洁现代设计
   =================================== */

footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 20px;
    background: var(--bg-secondary);
    text-align: center;
    border-top: 1px solid var(--border-light);
    margin-top: 40px;
}

.wcdhl-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-bottom: 12px;
}

.wcdhl-footer-links a {
    font-size: 0.75em;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.wcdhl-footer-links a:hover {
    text-decoration: underline;
    color: var(--accent-primary);
}

footer .wcdhl-copyright {
    font-size: 0.75em;
    color: var(--text-tertiary);
    margin: 0;
    font-weight: 400;
}

/* ===================================
   返回顶部按钮
   =================================== */

#back-top,
#back-home {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

#flow {
    position: fixed;
    bottom: 2rem;
    right: 1rem;
    display: none;
    flex-direction: column;
    align-items: center;
    background: var(--bg-secondary);
    padding: 12px;
    gap: 12px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-normal);
    border: 1px solid var(--border-light);
}

#flow:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-2px);
}

/* ===================================
   游戏详情页样式
   =================================== */

.wcdhl-game-detail-title {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px 1rem;
    border-radius: var(--radius-2xl);
    gap: 16px;
}

.wcdhl-game-detail-img {
    width: 100%;
    max-width: 800px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.wcdhl-game-detail-img img {
    width: 100%;
    border-radius: var(--radius-xl);
    object-fit: cover;
    aspect-ratio: 16 / 9;
    display: block;
}

.wcdhl-detail-info {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0px 10px;
    padding: 28px 24px;
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    width: 100%;
    max-width: 800px;
    border: 1px solid var(--border-light);
}

.wcdhl-detail-info h2 {
    color: var(--text-primary);
    font-size: 1.6rem;
    margin: 0 0 16px 0;
    font-weight: 700;
    text-align: center;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.wcdhl-detail-info p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.7;
}

.wcdhl-detail-info a {
    text-decoration: none;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    order: -1;
}

/* ===================================
   游戏说明区域
   =================================== */

.wcdhl-game-instructions {
    display: flex;
    flex-wrap: wrap;
    margin: 20px;
    background: var(--bg-secondary);
    padding: 24px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
} 

.wcdhl-game-instructions p {
    color: var(--text-secondary);
    line-height: 1.6rem;
    font-size: 0.95rem;
}

.wcdhl-game-instructions h3 {
    color: var(--text-primary);
    font-size: 1.2rem;
    margin: 0 0 16px 0;
    font-weight: 600;
    width: 100%;
}

.wcdhl-game-instructions h4 {
    color: var(--accent-primary);
    font-size: 1rem;
    margin: 12px 0 8px 0;
    font-weight: 600;
}

/* ===================================
   游戏按钮
   =================================== */

.wcdhl-game-gameplay-button {
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
    position: relative;
    top: auto;
    right: auto;
    margin-top: 16px;
    transition: transform var(--transition-normal);
}

.wcdhl-game-gameplay-button:hover {
    transform: scale(1.05);
}

.wcdhl-game-gameplay-button img {
    width: 120px;
    height: 120px;
    filter: drop-shadow(0 8px 24px rgba(108, 92, 231, 0.3));
}

.wcdhl-game-gameplay-button p {
    color: #fff;
    margin: 0px;
}

/* ===================================
   游戏iframe区域
   =================================== */

.wcdhl-game-iframe {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    height: 100vh;
    position: relative;
}

#iframe-menu-btn {
    margin-top: 20px;
    margin-left: 60px;
    position: absolute;
    height: 40px;
    width: 40px;
}

#iframe-back-btn {
    margin-top: 20px;
    margin-left: 20px;
    position: absolute;
    height: 50px;
    width: 50px;
}

/* ===================================
   文章详情页
   =================================== */

.wcdhl-news-detail {
    color: var(--text-primary);
    text-align: start;
    padding: 1.5rem;
    margin-top: 30px;
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
}

.wcdhl-news-detail img {
    width: 100%;
    object-fit: contain;
    border-radius: var(--radius-md);
}

/* ===================================
   错误页面
   =================================== */

.error-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 20px;
}

.error-page h1 {
    font-size: 2em;
    color: var(--text-primary);
    margin: 0 0 16px 0;
}

.error-page p {
    font-size: 1.2em;
    color: var(--text-secondary);
    padding: 1rem;
    margin: 0;
}

.error-page img {
    width: 100%;
    padding: 2rem 1rem;
}

/* ===================================
   游戏标签
   =================================== */

.wcdhl-game-mark {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: start;
    height: 4vh;
    position: absolute;
    border-radius: 0px 0px var(--radius-md) var(--radius-md);
    top: -10px;
    left: -10px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    padding: 4px 12px;
    box-shadow: var(--shadow-sm);
}

.wcdhl-game-mark img {
    width: 50px;
    height: 25px;
}

.wcdhl-game-new {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: start;
    height: 4vh;
    position: absolute;
    border-radius: 0px 0px var(--radius-md) var(--radius-md);
    top: 0px;
    left: -10px;
    background: linear-gradient(135deg, var(--accent-success), #00cec9);
    padding: 4px 12px;
    box-shadow: var(--shadow-sm);
}

.wcdhl-game-new img {
    width: 50px;
    height: 50px;
}

.wcdhl-game-mark p {
    color: #fff;
    font-size: 0.85rem;
    margin: 0px 8px;
    font-weight: 600;
}

#wcdhl-game-body {
    margin-top: 30px;
}

/* ===================================
   iframe菜单
   =================================== */

.iframe-menu {
    display: flex;
    width: 60%;
    flex-direction: column;
    gap: 8px;
    background: var(--bg-secondary);
    position: absolute;
    align-items: start;
    height: 100vh;
    top: 0vh;
    right: 0px;
    z-index: 8;
    margin: 0;
    list-style-type: none;
    display: none;
    padding: 16px;
    border-left: 1px solid var(--border-light);
    box-shadow: var(--shadow-lg);
}

.iframe-menu.open {
    display: flex;
    flex-direction: column;
}

.iframe-menu li a {
    font-size: 0.95rem;
    color: var(--accent-secondary);
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-normal);
    padding: 8px 12px;
    border-radius: var(--radius-md);
    width: 100%;
    display: block;
}

.iframe-menu li a:hover {
    color: var(--accent-primary);
    background: rgba(108, 92, 231, 0.08);
    transform: translateX(4px);
}

.iframe-list-item a {
    display: flex;
    flex-direction: row;
    margin: 0px;
    justify-content: space-between;
    align-items: center;
}

.iframe-list-item a img {
    margin: 0px;
    height: 40px;
    width: 40px;
    border-radius: var(--radius-md);
    object-fit: cover;
    aspect-ratio: 1 / 1;
    display: block;
}

.iframe-list-item a p {
    margin: 0px 20px;
    position: relative;
}

.iframe-list-item-close a {
    display: flex;
    flex-direction: row;
    margin: 0px;
    justify-content: end;
    align-items: center;
}

.iframe-list-item-close img {
    margin: 0px;
    height: 40px;
    width: 40px;
    border-radius: var(--radius-md);
    object-fit: cover;
    aspect-ratio: 1 / 1;
    display: block;
}

#iframe-close-btn {
    right: 0px;
    top: 0px;
}

/* ===================================
   搜索框 - 现代化设计
   =================================== */

.wcdhl-search-box {
    display: flex;
    align-items: center;
    position: relative;
    flex: 1;
    max-width: 300px;
    margin: 0 20px;
}

.wcdhl-search-box input {
    width: 100%;
    padding: 10px 40px 10px 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-size: 0.9rem;
    outline: none;
    transition: all var(--transition-normal);
}

.wcdhl-search-box input:focus {
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.25);
}

.wcdhl-search-box input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.wcdhl-search-icon {
    position: absolute;
    right: 12px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    transition: transform var(--transition-fast);
}

.wcdhl-search-icon:hover {
    transform: scale(1.1);
    stroke: var(--accent-primary);
}

.wcdhl-search-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-lg);
    max-height: 300px;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    display: none;
    z-index: 100;
}

.wcdhl-search-results.active {
    display: block;
}

.wcdhl-search-result-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
    transition: background-color var(--transition-fast);
    border-bottom: 1px solid var(--border-light);
}

.wcdhl-search-result-item:last-child {
    border-bottom: none;
}

.wcdhl-search-result-item:hover {
    background-color: var(--bg-primary);
}

.wcdhl-search-result-item img {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    margin-right: 12px;
    object-fit: cover;
}

.wcdhl-search-result-item .result-info {
    flex: 1;
}

.wcdhl-search-result-item .result-info h4 {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 600;
}

.wcdhl-search-result-item .result-info p {
    margin: 4px 0 0;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* ===================================
   订阅区域
   =================================== */

.wcdhl-newsletter-section {
    margin: 30px 10px;
    padding: 32px 24px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.wcdhl-newsletter-content {
    text-align: center;
}

.wcdhl-newsletter-content h3 {
    color: #ffffff;
    margin: 0 0 12px;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.wcdhl-newsletter-content > p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 24px;
    font-size: 0.95rem;
}

.wcdhl-newsletter-form {
    display: flex;
    justify-content: center;
    gap: 12px;
    max-width: 500px;
    margin: 0 auto;
}

.wcdhl-newsletter-form input {
    flex: 1;
    padding: 12px 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 24px;
    font-size: 0.95rem;
    outline: none;
    background: rgba(255, 255, 255, 0.95);
    transition: all var(--transition-normal);
}

.wcdhl-newsletter-form input:focus {
    border-color: #fff;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

.wcdhl-newsletter-form button {
    padding: 12px 28px;
    background: #fff;
    color: var(--accent-primary);
    border: none;
    border-radius: 24px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.wcdhl-newsletter-form button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

#newsletter-message {
    margin-top: 16px;
    color: #ffffff;
    font-size: 0.9rem;
    min-height: 20px;
}

/* ===================================
   评分系统
   =================================== */

.wcdhl-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 12px 0;
}

.wcdhl-rating .star {
    font-size: 1.5rem;
    color: var(--bg-tertiary);
    cursor: pointer;
    transition: color var(--transition-fast);
}

.wcdhl-rating .star.active,
.wcdhl-rating .star:hover {
    color: var(--accent-warning);
}

.wcdhl-rating-text {
    margin-left: 10px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ===================================
   评论区
   =================================== */

.wcdhl-comments-section {
    margin: 20px 0;
    padding: 24px;
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
}

.wcdhl-comments-section h3 {
    color: var(--text-primary);
    margin: 0 0 20px;
    font-size: 1.2rem;
    font-weight: 600;
}

.wcdhl-comment-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.wcdhl-comment-form input,
.wcdhl-comment-form textarea {
    padding: 12px 16px;
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    outline: none;
    transition: all var(--transition-normal);
    background: var(--bg-primary);
    color: var(--text-primary);
}

.wcdhl-comment-form input:focus,
.wcdhl-comment-form textarea:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.1);
    background: var(--bg-secondary);
}

.wcdhl-comment-form textarea {
    min-height: 100px;
    resize: vertical;
}

.wcdhl-comment-form button {
    padding: 12px 24px;
    background: var(--accent-primary);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    align-self: flex-start;
}

.wcdhl-comment-form button:hover {
    background: var(--accent-secondary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.wcdhl-comment-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.wcdhl-comment {
    padding: 16px;
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--accent-primary);
}

.wcdhl-comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.wcdhl-comment-author {
    font-weight: 600;
    color: var(--accent-primary);
    font-size: 0.95rem;
}

.wcdhl-comment-date {
    color: var(--text-tertiary);
    font-size: 0.8rem;
}

.wcdhl-comment p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ===================================
   博客页样式
   =================================== */

.wcdhl-blog-header {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: var(--radius-2xl);
    margin: 20px;
    box-shadow: var(--shadow-lg);
}

.wcdhl-blog-header h1 {
    color: #ffffff;
    font-size: 2rem;
    margin: 0 0 12px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.wcdhl-blog-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    margin: 0;
}

.wcdhl-blog-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 20px;
}

.wcdhl-blog-item {
    background: var(--bg-secondary);
    padding: 24px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: all var(--transition-normal);
    border: 1px solid var(--border-light);
}

.wcdhl-blog-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent-primary);
}

.wcdhl-blog-item-title {
    color: var(--text-primary);
    font-size: 1.2rem;
    margin: 0 0 12px;
    font-weight: 600;
    line-height: 1.4;
}

.wcdhl-blog-item-content {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.6;
}

/* ===================================
   响应式设计
   =================================== */

@media (max-width: 768px) {
    .wcdhl-search-box {
        max-width: 150px;
        margin: 0 10px;
    }
    
    .wcdhl-newsletter-form {
        flex-direction: column;
    }
    
    .wcdhl-newsletter-form button {
        width: 100%;
    }
    
    .wcdhl-blog-header h1 {
        font-size: 1.6rem;
    }
}

/* ===================================
   深色模式
   =================================== */

body.dark-mode {
    --bg-primary: #0f0f0f;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #2a2a2a;
    --text-primary: #f5f5f7;
    --text-secondary: #a1a1a6;
    --text-tertiary: #6e6e73;
    --border-light: rgba(255, 255, 255, 0.08);
    --border-medium: rgba(255, 255, 255, 0.12);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 12px 48px rgba(0, 0, 0, 0.5);
}

body.dark-mode header {
    background: rgba(26, 26, 26, 0.9);
    box-shadow: var(--shadow-sm);
}

body.dark-mode .wcdhl-menu {
    background: rgba(26, 26, 26, 0.98);
    box-shadow: var(--shadow-lg);
}

body.dark-mode .wcdhl-search-box input {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border-color: var(--border-medium);
}

body.dark-mode .wcdhl-search-box input:focus {
    background: var(--bg-secondary);
}

body.dark-mode .wcdhl-search-results {
    background: var(--bg-secondary);
    border-color: var(--border-medium);
}

body.dark-mode .wcdhl-search-result-item {
    border-bottom-color: var(--border-light);
}

body.dark-mode .wcdhl-search-result-item:hover {
    background-color: var(--bg-tertiary);
}

body.dark-mode .wcdhl-comment-form input,
body.dark-mode .wcdhl-comment-form textarea {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border-color: var(--border-medium);
}

body.dark-mode .wcdhl-comment-form input:focus,
body.dark-mode .wcdhl-comment-form textarea:focus {
    background: var(--bg-secondary);
}

body.dark-mode .wcdhl-newsletter-form input {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.2);
}

body.dark-mode .wcdhl-newsletter-form input:focus {
    background: rgba(255, 255, 255, 0.15);
}

body.dark-mode #flow {
    background: var(--bg-secondary);
    box-shadow: var(--shadow-lg);
}

/* ===================================
   主题切换按钮
   =================================== */

.wcdhl-theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    cursor: pointer;
    margin-right: 10px;
    border-radius: 50%;
    transition: all var(--transition-normal);
    background: var(--bg-primary);
}

.wcdhl-theme-toggle:hover {
    background: var(--bg-tertiary);
    transform: rotate(180deg);
}

.wcdhl-theme-toggle svg {
    width: 20px;
    height: 20px;
}
