/* WordPress写真站优化插件 - 前端样式 */



/* 防复制样式 */
.wp-coser-no-select {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.wp-coser-no-copy {
    pointer-events: none;
}

/* 禁用右键菜单提示 */
.wp-coser-copy-protection-notice {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #333;
    color: #fff;
    padding: 15px 25px;
    border-radius: 5px;
    z-index: 10000;
    display: none;
    font-size: 14px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* 文章内链样式 */
.wp-coser-auto-link {
    color: #007cba;
    text-decoration: none;
    border-bottom: 1px dotted #007cba;
}

.wp-coser-auto-link:hover {
    color: #005a87;
    text-decoration: none;
    border-bottom: 1px solid #005a87;
}

/* 外链转换样式 */
.wp-coser-external-link {
    position: relative;
}

.wp-coser-external-link:after {
    content: "↗";
    font-size: 12px;
    margin-left: 3px;
    opacity: 0.7;
}

/* 加载动画 */
.wp-coser-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007cba;
    border-radius: 50%;
    animation: wp-coser-spin 1s linear infinite;
}

@keyframes wp-coser-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 响应式图片样式 */
.wp-coser-responsive-img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* 文章浏览量样式 */
.wp-coser-post-views {
    color: #666;
    font-size: 12px;
    margin: 5px 0;
}

.wp-coser-post-views:before {
    content: "👁 ";
    margin-right: 3px;
}

/* 移动端优化 */
@media (max-width: 768px) {
    .wp-coser-copy-protection-notice {
        max-width: 90%;
        padding: 10px 15px;
        font-size: 12px;
    }
}

/* 隐藏WordPress默认元素 */
.wp-coser-hide-wp-elements .wp-block-latest-posts__post-date,
.wp-coser-hide-wp-elements .wp-block-latest-posts__post-author {
    display: none;
}

/* SEO优化相关样式 */
.wp-coser-breadcrumb {
    font-size: 12px;
    color: #666;
    margin-bottom: 15px;
}

.wp-coser-breadcrumb a {
    color: #007cba;
    text-decoration: none;
}

.wp-coser-breadcrumb a:hover {
    text-decoration: underline;
}

.wp-coser-breadcrumb .separator {
    margin: 0 5px;
    color: #999;
}

/* 标签云优化 */
.wp-coser-tag-cloud {
    line-height: 1.8;
}

.wp-coser-tag-cloud a {
    display: inline-block;
    padding: 3px 8px;
    margin: 2px;
    background-color: #f8f9fa;
    color: #666;
    text-decoration: none;
    border-radius: 3px;
    font-size: 12px;
    transition: all 0.3s ease;
}

.wp-coser-tag-cloud a:hover {
    background-color: #007cba;
    color: #fff;
}

/* 相关文章样式 */
.wp-coser-related-posts {
    margin-top: 30px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 5px;
}

.wp-coser-related-posts h3 {
    margin-top: 0;
    color: #333;
    font-size: 18px;
    border-bottom: 2px solid #007cba;
    padding-bottom: 10px;
}

.wp-coser-related-posts ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.wp-coser-related-posts li {
    margin-bottom: 10px;
    padding-left: 15px;
    position: relative;
}

.wp-coser-related-posts li:before {
    content: "▶";
    position: absolute;
    left: 0;
    color: #007cba;
    font-size: 10px;
}

.wp-coser-related-posts a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
}

.wp-coser-related-posts a:hover {
    color: #007cba;
}

/* ==========================================================================
   最近文章短代码样式
   ========================================================================== */

.wp-coser-recent-posts {
    margin: 20px 0;
    padding: 18px;
    background-color: transparent;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    font-size: 16px;
    line-height: 1.5;
}

.wp-coser-recent-posts .recent-posts-title {
    margin: 0 0 8px 0;
    font-size: 20px;
    color: #d32f2f;
    font-weight: bold;
    text-align: center;
}

.wp-coser-recent-posts .recent-posts-toggle-hint {
    margin: 0 0 16px 0;
    font-size: 15px;
    color: #777;
    text-align: left;
}

.wp-coser-recent-posts .toggle-all {
    color: #007cba;
    cursor: pointer;
    text-decoration: underline;
}

.wp-coser-recent-posts .toggle-all:hover {
    color: #005a8b;
}

.wp-coser-recent-posts .posts-year-group {
    margin-bottom: 18px;
}

.wp-coser-recent-posts .posts-year-title {
    margin: 0 0 8px 0;
    font-size: 16px;
    color: #444;
    font-weight: 600;
}

.wp-coser-recent-posts .posts-year-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.wp-coser-recent-posts .posts-month-item {
    margin-bottom: 8px;
    padding-left: 15px;
    position: relative;
}

.wp-coser-recent-posts .posts-month-item:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #555;
    font-weight: normal;
    font-size: 24px;
    top: -4px;
}

.wp-coser-recent-posts .posts-month-header {
    cursor: pointer;
    color: #444;
    padding: 2px 0;
    display: inline-block;
}

.wp-coser-recent-posts .post-count {
    color: #A40000;
    font-size: 15px;
}

.wp-coser-recent-posts .posts-month-list {
    list-style: none;
    padding: 0;
    margin: 8px 0 0 0;
}

.wp-coser-recent-posts .posts-month-list li {
    margin-bottom: 6px;
    padding-left: 20px;
    position: relative;
    line-height: 1.5;
}

.wp-coser-recent-posts .posts-month-list li:before {
    content: "◦";
    position: absolute;
    left: 5px;
    color: #999;
    font-size: 24px;
    top: 50%;
    transform: translateY(-50%);
}

.wp-coser-recent-posts .posts-month-list a {
    color: #666;
    text-decoration: none;
}

.wp-coser-recent-posts .posts-month-list a:hover {
    color: #007cba;
    text-decoration: underline;
}

.wp-coser-recent-posts .posts-month-list .post-date {
    color: #888;
    font-size: 15px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .wp-coser-recent-posts {
        padding: 15px;
        margin: 15px 0;
    }
    
    .wp-coser-recent-posts .recent-posts-title {
        font-size: 16px;
    }
    
    .wp-coser-recent-posts .posts-year-title {
        font-size: 14px;
    }
    
    .wp-coser-recent-posts .posts-month-item {
        padding-left: 12px;
    }
    
    .wp-coser-recent-posts .posts-month-list li {
        padding-left: 18px;
    }
}

/* ==========================================================================
   防复制保护样式增强
   ========================================================================== */

.wp-coser-copy-protection * {
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
}

.wp-coser-copy-protection input,
.wp-coser-copy-protection textarea {
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    user-select: text !important;
}

.wp-coser-copy-protection img {
    pointer-events: none !important;
    -webkit-touch-callout: none !important;
}

/* ==========================================================================
   H2标题样式增强
   ========================================================================== */

.wp-coser-h2-styling article h2 {
    position: relative;
    padding-bottom: 8px !important;
    margin-bottom: 15px !important;
    border-bottom: 4px solid var(--wp-coser-h2-color, #ff69b4) !important;
    line-height: 1.4 !important;
}

.wp-coser-h2-styling .single article h2,
.wp-coser-h2-styling .single .entry-content h2,
.wp-coser-h2-styling .single .post-content h2,
.wp-coser-h2-styling .page article h2,
.wp-coser-h2-styling .page .entry-content h2,
.wp-coser-h2-styling .page .page-content h2 {
    position: relative;
    padding-bottom: 8px !important;
    margin-bottom: 15px !important;
    border-bottom: 4px solid var(--wp-coser-h2-color, #ff69b4) !important;
    line-height: 1.4 !important;
}

/* 确保不影响其他页面的H2 */
.wp-coser-h2-styling .home h2,
.wp-coser-h2-styling .archive h2,
.wp-coser-h2-styling .search h2,
.wp-coser-h2-styling .widget h2,
.wp-coser-h2-styling .sidebar h2,
.wp-coser-h2-styling .nav h2,
.wp-coser-h2-styling .menu h2,
.wp-coser-h2-styling .header h2,
.wp-coser-h2-styling .footer h2 {
    padding-bottom: 0 !important;
    border-bottom: none !important;
}

/* ==========================================================================
   H3标题样式增强
   ========================================================================== */

.wp-coser-h3-styling article h3 {
    position: relative;
    padding-left: 12px !important;
    margin-left: 0 !important;
    border-left: 3px solid var(--wp-coser-h3-color, #4CAF50) !important;
    line-height: 1.4 !important;
}

.wp-coser-h3-styling .single article h3,
.wp-coser-h3-styling .single .entry-content h3,
.wp-coser-h3-styling .single .post-content h3,
.wp-coser-h3-styling .page article h3,
.wp-coser-h3-styling .page .entry-content h3,
.wp-coser-h3-styling .page .page-content h3 {
    position: relative;
    padding-left: 12px !important;
    margin-left: 0 !important;
    border-left: 3px solid var(--wp-coser-h3-color, #4CAF50) !important;
    line-height: 1.4 !important;
}

/* 确保不影响其他页面的H3 */
.wp-coser-h3-styling .home h3,
.wp-coser-h3-styling .archive h3,
.wp-coser-h3-styling .search h3,
.wp-coser-h3-styling .widget h3,
.wp-coser-h3-styling .sidebar h3,
.wp-coser-h3-styling .nav h3,
.wp-coser-h3-styling .menu h3,
.wp-coser-h3-styling .header h3,
.wp-coser-h3-styling .footer h3 {
    padding-left: 0 !important;
    border-left: none !important;
}

/* ==========================================================================
   段落缩进样式
   ========================================================================== */

.wp-coser-paragraph-indent article p {
    text-indent: 2em !important;
    line-height: 1.8 !important;
    margin-bottom: 1em !important;
}

.wp-coser-paragraph-indent .single article p,
.wp-coser-paragraph-indent .single .entry-content p,
.wp-coser-paragraph-indent .single .post-content p,
.wp-coser-paragraph-indent .page article p,
.wp-coser-paragraph-indent .page .entry-content p,
.wp-coser-paragraph-indent .page .page-content p {
    text-indent: 2em !important;
    line-height: 1.8 !important;
    margin-bottom: 1em !important;
}

/* 特殊段落不缩进 */
.wp-coser-paragraph-indent article p.no-indent,
.wp-coser-paragraph-indent article p[style*="text-align: center"],
.wp-coser-paragraph-indent article p[style*="text-align: right"] {
    text-indent: 0 !important;
}

/* 包含图片的段落不缩进 */
.wp-coser-paragraph-indent article p:has(img),
.wp-coser-paragraph-indent .single article p:has(img),
.wp-coser-paragraph-indent .single .entry-content p:has(img),
.wp-coser-paragraph-indent .single .post-content p:has(img),
.wp-coser-paragraph-indent .page article p:has(img),
.wp-coser-paragraph-indent .page .entry-content p:has(img),
.wp-coser-paragraph-indent .page .page-content p:has(img) {
    text-indent: 0 !important;
}

/* 确保不影响其他页面的段落 */
.wp-coser-paragraph-indent .home p,
.wp-coser-paragraph-indent .archive p,
.wp-coser-paragraph-indent .search p,
.wp-coser-paragraph-indent .widget p,
.wp-coser-paragraph-indent .sidebar p,
.wp-coser-paragraph-indent .nav p,
.wp-coser-paragraph-indent .menu p,
.wp-coser-paragraph-indent .header p,
.wp-coser-paragraph-indent .footer p,
.wp-coser-paragraph-indent .comment p {
    text-indent: 0 !important;
}

/* ==========================================================================
   响应式设计 - 移动端优化
   ========================================================================== */

@media (max-width: 768px) {
    /* H2标题移动端优化 */
    .wp-coser-h2-styling article h2,
    .wp-coser-h2-styling .single article h2,
    .wp-coser-h2-styling .single .entry-content h2,
    .wp-coser-h2-styling .single .post-content h2,
    .wp-coser-h2-styling .page article h2,
    .wp-coser-h2-styling .page .entry-content h2,
    .wp-coser-h2-styling .page .page-content h2 {
        padding-bottom: 6px !important;
        margin-bottom: 12px !important;
        border-bottom-width: 3px !important;
        font-size: 1.3em !important;
    }
    
    /* H3标题移动端优化 */
    .wp-coser-h3-styling article h3,
    .wp-coser-h3-styling .single article h3,
    .wp-coser-h3-styling .single .entry-content h3,
    .wp-coser-h3-styling .single .post-content h3,
    .wp-coser-h3-styling .page article h3,
    .wp-coser-h3-styling .page .entry-content h3,
    .wp-coser-h3-styling .page .page-content h3 {
        padding-left: 10px !important;
        border-left-width: 2px !important;
        font-size: 1.2em !important;
    }
    
    /* 段落缩进移动端优化 */
    .wp-coser-paragraph-indent article p,
    .wp-coser-paragraph-indent .single article p,
    .wp-coser-paragraph-indent .single .entry-content p,
    .wp-coser-paragraph-indent .single .post-content p,
    .wp-coser-paragraph-indent .page article p,
    .wp-coser-paragraph-indent .page .entry-content p,
    .wp-coser-paragraph-indent .page .page-content p {
        text-indent: 1.5em !important;
        line-height: 1.6 !important;
        font-size: 16px !important;
    }
}