

/* 表单主容器 */
.wpcf7 {
    background-color: var(--bg-color);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
   
    margin: 20px auto; /* 居中显示 */
}

/* 表单字段布局 */
.wpcf7-form label {
    display: block; /* 让标签和输入框各占一行 */
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--label-color);
    font-size: 16px;
}

/* 所有输入框和文本域的通用样式 */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form textarea {
    width: 100%; /* 宽度100% */
    padding: 12px 15px;
    border: 1px solid #d1cfcf;
    border-radius: 5px;
    font-size: 16px;
    color: var(--text-color);
    background-color: #fff;
    transition: all 0.3s ease; /* 平滑过渡效果 */
    box-sizing: border-box; /* 防止padding撑大宽度 */
}

/* 文本域特殊设置 */
.wpcf7-form textarea {
    min-height: 120px; /* 设置最小高度 */
    resize: vertical; /* 允许用户垂直拖动调整大小 */
}

/* 输入框获得焦点时的样式 */
.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form textarea:focus {
    outline: none; 
    border-color: var(--primary-color);
    box-shadow: 0 0 8px rgba(0, 115, 170, 0.3); 
}

/* 提交按钮样式 */
.wpcf7-form input[type="submit"] {
    background-color: #1f71c9;
    color: #fff;
    border: none;
    padding: 12px 30px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer; /* 鼠标悬停时显示手型 */
    transition: background-color 0.3s ease;
    width: 100%; /* 按钮也占满整行 */
    margin-top: 10px;
}

/* 提交按钮悬停效果 */
.wpcf7-form input[type="submit"]:hover {
    background-color: #1a5697;
}


.wpcf7 .ajax-loader {
    display: none;
}


.wpcf7-not-valid-tip {
    color: var(--error-color);
    font-size: 14px;
    margin-top: 5px;
    display: block;
}


.wpcf7-response-output {
    margin: 20px 0;
    padding: 15px;
    border-radius: 5px;
    
}


.comments-area {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.comments-title {
    font-size: 1.5em;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-color);
}

/* --- 评论列表样式 --- */
.comment-list {
    list-style: none;
    padding-left: 0;
}

.comment-list .children {
    list-style: none;
    padding-left: 60px; 
    margin-top: 15px;
    border-left: 2px solid var(--border-color);
}


.comment_li {
    margin-bottom: 25px;
    padding: 20px;
    background-color: var(--card-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.3s ease;
}

.comment_li:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.comment_li > div {
    display: flex;
    gap: 15px;
}

.comment-avatar img {
    border-radius: 50%;
    border: 2px solid var(--border-color);
    flex-shrink: 0;
}

.comment-main {
    flex-grow: 1;
}

/* --- 评论头部信息 --- */
.comment_top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.comment_author {
    margin: 0;
    font-size: 1.1em;
    font-weight: 600;
}

.comment_author a {
    color: var(--text-color);
    text-decoration: none;
}

.comment_author a:hover {
    color: var(--primary-color);
}

.comment_time {
    margin: 0;
    font-size: 0.9em;
    color: var(--muted-color);
}

.pull-right {
    font-size: 0.9em;
}

.comment-reply-link, .edit_link a {
    color: var(--muted-color);
    text-decoration: none;
    margin-left: 10px;
    transition: color 0.2s;
}

.comment-reply-link:hover, .edit_link a:hover {
    color: var(--primary-color);
}

/* --- 评论内容 --- */
.comment_text {
    font-size: 1em;
    line-height: 1.7;
}

.comment_text p {
    margin: 0 0 10px;
}

/* --- 评论表单样式 --- */
.comment-respond {
    margin-top: 40px;
    padding: 5px;
    background-color: var(--card-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.comment-reply-title {
    font-size: 1.3em;
    margin-top: 0;
    margin-bottom: 20px;
}

.comment-form p {
    margin-bottom: 15px;
}

.comment-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e7e5e5;
    border-radius: 5px;
    font-family: var(--font-family);
    font-size: 1em;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.comment-form textarea {
    resize: vertical;
    min-height: 120px;
}

.form-submit {
    text-align: left;
}

.comment-form .submit {
    background-color: #1f71c9;
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.comment-form .submit:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}


@media (max-width: 768px) {
    body {
        padding: 10px;
    }
.wpcf7 {
    background-color: var(--bg-color);
    padding: 5px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
   
    margin: 20px auto; /* 居中显示 */
}
    .article-container {
        padding: 20px;
    }

    .comment_li > div {
        flex-direction: column;
        gap: 10px;
    }

    .comment-avatar {
        align-self: flex-start;
    }

    .comment_top {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .pull-right {
        align-self: flex-end;
    }

    .comment-list .children {
        padding-left: 30px;
    }
}
.news-grid {
    display: flex;
    flex-wrap: wrap; 
    gap: 20px; 
}

.related-card {
    
    flex-basis: calc(33.333% - 14px); 
    flex-grow: 1; 
    box-sizing: border-box; 
}

/* 响应式部分 */
@media (max-width: 768px) {
    .related-card {
        flex-basis: calc(50% - 10px);
    }
}
@media (max-width: 480px) {
    .related-card {
        flex-basis: 100%;
    }
}

a{color:#000;text-decoration:none;}
.article-meta .span a{color:#000;text-decoration:none;}

.article-hero-banner {
            position: relative;
            height: 450px;
            background-image: url('/222.jpg');
            background-size: cover;
            background-position: center;
            display: flex;
            flex-direction: column;
            justify-content: flex-end; /* 内容靠下对齐 */
            padding: 140px 0;
            color: #fff;
        }

        .article-hero-banner::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0.1)); /* 底部加深渐变以突出文字 */
        }
        
        .article-hero-banner .container {
            position: relative;
            z-index: 2;
        }

        .article-hero-banner .breadcrumbs,
        .article-hero-banner .breadcrumbs a {
            color: #f1f1f1;
            text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
            font-size: 14px;
        }
        
        .article-hero-banner .breadcrumbs a:hover {
            text-decoration: underline;
        }

        .article-hero-banner h1 {
            font-size: 42px;
            line-height: 1.2;
            text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
            margin-top: 10px;
            margin-bottom: 15px;
        }

        .article-hero-banner .article-meta {
            color: #ddd;
            text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
        }
        
        .article-hero-banner .article-meta span {
             margin-right: 20px;
        }
        
        /* 2. 主内容区域 */
        .main-content-wrapper {
            padding: 50px 0;
        }
        
        .article-grid-container {
            display: grid;
            grid-template-columns: 3fr 1fr;
            gap: 50px;
            align-items: flex-start;
        }

        .article-main {
            background-color: #fff;
            
            
        }

        .article-content {
            font-size: 16px;
            line-height: 1.8;
            color: #333;
        }
        .article-content .article-meta {
            border-bottom: 1px solid #eee;
                padding-bottom: 15px;
        }
        .article-content p {
            margin-bottom: 20px;
        }
        
        .article-content img {
            max-width: 100%;
            height: auto;
            border-radius: 8px;
            margin: 20px 0;
        }

        /* ... (其他文章和侧边栏样式保持基本不变) ... */
        .related-posts { margin-top: 40px; }
        .related-posts h2 { font-size: 24px; margin-bottom: 20px; }
        .related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
        .related-card { background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,0.05); }
        .related-card img { width: 100%; height: 150px; object-fit: cover; }
        .related-card-content { padding: 15px; }
        .related-card h3 { font-size: 16px; margin: 0; }
        .related-card a { text-decoration: none; color: #333; }

        .sidebar-widget { background-color: #fff; padding: 20px; border-radius: 8px; margin-bottom: 30px; }
        .sidebar-widget h3 { font-size: 14px; margin-bottom: 20px; border-bottom: 1px solid #eee; padding-bottom: 10px; }
        .sidebar-widget h3 a{border-left: 3px solid #007bff;padding-left:1em;}
        .latest-posts-list li { list-style: none; margin-bottom: 15px; }
        .latest-posts-list a { text-decoration: none; color: #333; font-size: 15px; }
        
        /* 3. 响应式调整 */
        @media (max-width: 992px) {
            .article-grid-container {
                grid-template-columns: 1fr;
            }
        }
        
        @media (max-width: 768px) {
            .related-card{width:100%}
            .article-hero-banner {
                height: 350px;
                padding: 120px 0;
            }
            .article-hero-banner h1 {
                font-size: 28px;
            }
             .main-content-wrapper {
                padding: 30px 0;
            }
        }
        
#searchform {
  max-width: 500px; /* 限制最大宽度，显得更精致 */
  margin: 20px auto; /* 上下外边距20px，左右自动居中 */
}

.input-group {
  display: flex; 
  border: 1px solid #c1bdbd;
  border-radius:30px;
  overflow: hidden; /* 关键：让内部的圆角生效 */
  background-color: #fff;
  transition: box-shadow 0.3s ease, border-color 0.3s ease; /* 平滑过渡效果 */
}


.input-group:focus-within {
  border-color: #939292;
  box-shadow: 0 0 0 1px #939292; /* 柔和的阴影 */
}

#searchform .form-control {
  flex: 1; /* 占据剩余的所有空间 */
  border: none; /* 去掉输入框自己的边框 */
  padding: 12px 20px; /* 舒适的内边距 */
  font-size: 16px;
  color: var(--text-color);
  background-color: transparent; /* 背景透明，使用父级的背景 */
  outline: none; 
  width: 110px;
}

#searchform .form-control::placeholder {
  color: #aaa; /* 占位符文字颜色 */
}

#searchform .btn {
    border: none;
    background-color: #fff;
    color: #0c0000;
    padding: 15px 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}



#searchform .btn i {
  font-size: 16px; /* 图标大小 */
}       