/* 基础样式 */
:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --accent-color: #3b82f6;
    --text-color: #333;
    --light-text: #666;
    --bg-color: #fff;
    --light-bg: #f8fafc;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

.container {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 15px;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn.primary {
    background-color: var(--primary-color);
    color: white;
}

.btn.primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

.btn.secondary {
    background-color: white;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn.secondary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
    color: var(--text-color);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 15px auto 0;
}

/* 导航栏样式 */
.header {
	background-color: var(--bg-color);
	box-shadow: var(--box-shadow);
	position: fixed;
	width: 100%;
	top: 0;
	left: 0;
	z-index: 1000;
	padding: 15px 0;
}

.admin-bar .header {
	padding-top: 45px;
}
@media only screen and (max-width: 767px) {
	.admin-bar .header {
		padding-top: 61px;
	}
}

.logo {
	font-size: 1.8rem;
	font-weight: 700;
	color: var(--text-color);
}
.logo span {
	color: var(--primary-color);
}

.navbar ul {
	display: flex;
	align-items: center;
	gap: 30px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.navbar li {
	position: relative;
	text-align: center;
}

@media only screen and (min-width: 768px) {
    .navbar li ul {
    	display: none;
    	position: absolute;
    	top: 100%;
    	left: 0;
    	background: #fff;
    	box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    	min-width: 150px;
    	z-index: 999;
    }
}


.navbar li:hover > ul {
	display: block;
}
.navbar li ul li {
	width: 100%;
}
.navbar li ul li a {
	display: block;
	padding: 10px;
	color: #333;
	background-color: #fff;
}
.navbar li ul li a:hover {
	background-color: var(--primary-color);
	color: #fff;
}

.navbar ul li a {
	font-weight: 500;
	transition: color 0.3s ease;
	color: var(--text-color);
}
.navbar ul li a:hover {
	color: var(--primary-color);
}


.navbar li.menu-item-has-children > a {
	position: relative;
	padding-right: 20px; /* 给箭头留点空间 */
}

.navbar li.menu-item-has-children > a::after {
	content: "\f078"; /* 向下实心箭头：fa-chevron-down */
	font-family: "Font Awesome 6 Free";
	font-weight: 900;
	position: absolute;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	font-size: 0.75em;
	color: var(--text-color); /* 或自定义颜色 */
	pointer-events: none;
}

@media only screen and (max-width: 767px) {
    .navbar li ul {
        gap: 10px;
        background-color: #fafafa;
        font-size: 14px;
        padding: 10px;
        width: 100%;
    }
}


/* 响应式菜单按钮 & 搜索 */
.header-icons {
	display: flex;
	align-items: center;
	gap: 20px;
}
.search-toggle, .mobile-menu {
	font-size: 1.4rem;
	cursor: pointer;
	display: block;
}

@media only screen and (min-width: 768px) {
    .mobile-menu {
    	display: none;
    }
}

/* 搜索弹窗样式 */
.search-popup {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.7);
	z-index: 9999;
	justify-content: center;
	align-items: center;
	opacity: 0;
	transition: opacity 0.4s ease;
}

.search-popup.active {
	display: flex;
	opacity: 1;
	animation: fadeIn 0.4s ease forwards;
}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: scale(0.95);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}

.search-popup-inner {
	background: #fff;
	padding: 30px;
	border-radius: 12px;
	position: relative;
	width: 90%;
	max-width: 500px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.search-popup-inner form {
	display: flex;
	gap: 10px;
	align-items: center;
}

.search-popup input {
	flex: 1;
	padding: 12px 15px;
	font-size: 16px;
	border: 1px solid #ccc;
	border-radius: 6px;
	outline: none;
	transition: border-color 0.3s ease;
}

.search-popup input:focus {
	border-color: var(--primary-color);
	box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.2);
}

.search-popup button {
	padding: 12px 16px;
	background-color: var(--primary-color);
	color: #fff;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	transition: background-color 0.3s ease;
}

.search-popup button:hover {
	background-color: #0056b3; /* 替换为合适的 hover 色 */
}

.close-search {
	position: absolute;
	top: 0px;
	right: 15px;
	font-size: 22px;
	color: #666;
	cursor: pointer;
	transition: color 0.3s ease;
}

.close-search:hover {
	color: #000;
}

/* 英雄区域 */
.hero {
    padding: 150px 0 80px;
    background-color: var(--light-bg);
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-content {
    flex: 1;
}

.hero-content h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--light-text);
    margin-bottom: 30px;
}

.cta-buttons {
    display: flex;
    gap: 15px;
}

.hero-image {
    flex: 1;
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

/* 服务特色 */
.features {
    padding: 80px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: var(--bg-color);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--light-text);
}

/* 成功案例 */
.home .portfolios {
    padding: 60px 0;
    background-color: var(--light-bg);
}

/* 博客文章模块 */
.home .blog-section {
    padding: 60px 0;
    background-color: #fff;
}

.home .blog-section .blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.home .blog-section .blog-post {
    display: flex;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    padding:15px;
}

.home .blog-section .blog-post:hover {
    transform: translateY(-5px);
}

.home .blog-section .blog-post a {
    width: 30%;
}

.home .blog-section .blog-post img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
}

.home .blog-section .post-content {
    padding-left: 15px;
    width: 70%;
}

.home .blog-section .post-content h3 {
    margin: 0 0 5px;
    font-size: 18px;
    white-space: nowrap;         /* 不换行 */
    overflow: hidden;            /* 超出隐藏 */
    text-overflow: ellipsis;     /* 显示省略号 */

}

.home .blog-section .post-content h3 a {
    text-decoration: none;
    color: #333;
}

.home .blog-section .post-date {
    font-size: 12px;
    color: #888;
    margin-bottom: 10px;
    display: flex;
    gap: 8px;
    align-items: center;
}

.home .blog-section .post-excerpt {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
     display: -webkit-box;             /* 必须配合 box 模式 */
    -webkit-line-clamp: 2;            /* 限制最多显示2行 */
    -webkit-box-orient: vertical;     /* 垂直排列 */
    overflow: hidden;                 /* 超出隐藏 */
    text-overflow: ellipsis;         /* 出现省略号 */
}

@media only screen and (max-width: 767px) {
    
    .home .blog-section .blog-grid {
        grid-template-columns: repeat(1, 1fr);
    }
    
    .home .blog-section .blog-post a {
        width: 35%;
    }
    
    .home .blog-section .post-content {
        padding-left: 15px;
        width: 65%;
    }
}




/* 页脚 */
.footer {
    background-color: #1a1a1a;
    color: white;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li i {
    margin-right: 10px;
    color: var(--primary-color);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
    }
    
    .cta-buttons {
        justify-content: center;
    }
    
    .hero-image {
        margin-top: 40px;
    }
}

@media (max-width: 768px) {
    .navbar {
        position: fixed;
        top: 75px;
        left: -100%;
        width: 100%;
        background-color: var(--bg-color);
        box-shadow: var(--box-shadow);
        transition: left 0.3s ease;
    }
    .admin-bar .navbar {
        top: 121px;
    }
    
    .navbar.active {
        left: 0;
    }
    
    .navbar ul {
        flex-direction: column;
        padding: 20px;
    }
    
    .mobile-menu {
        display: block;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
}




/* 服务页面特定样式 */
.page-hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-align: center;
    padding: 120px 0 80px;
    margin-top: 80px;
}

.page-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.page-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* 服务分类标签 */
.category-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.tab-btn {
    padding: 12px 25px;
    background: none;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--light-text);
    border: 1px solid #ddd;
}

@media only screen and (max-width: 767px) {
    .tab-btn {
        padding: 8px 20px;
    }
}

.tab-btn:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.tab-btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* 服务详情 */
.service-details {
    padding: 60px 0;
}
.service-categories{
    padding-top:80px;
}
.service-tab {
    display: none;
    align-items: center;
    gap: 50px;
}

.service-tab.active {
    display: flex;
}

.service-content {
    flex: 1;
}

.service-content h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--text-color);
}

.service-content p {
    margin-bottom: 25px;
    color: var(--light-text);
    line-height: 1.8;
}

.service-features {
    margin: 30px 0;
}

.service-features h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.service-features ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.service-features i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.service-process {
    margin-top: 40px;
}

.service-process h3 {
    font-size: 1.4rem;
    margin-bottom: 25px;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

.step {
    background-color: var(--light-bg);
    padding: 25px 20px;
    border-radius: var(--border-radius);
    text-align: center;
    position: relative;
    transition: transform 0.3s ease;
}

.step:hover {
    transform: translateY(-5px);
}

.step-number {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin: 0 auto 15px;
}

.step h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.step p {
    font-size: 0.9rem;
    color: var(--light-text);
    margin: 0;
}

.service-image {
    flex: 1;
    text-align: center;
}

.service-image img {
    max-width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

/* 服务比较表 */
.service-comparison {
    padding: 60px 0;
    background-color: var(--light-bg);
}

.comparison-table {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 30px;
    box-shadow: var(--box-shadow);
    background-color: var(--bg-color);
}

th, td {
    padding: 15px;
    text-align: center;
    border: 1px solid #eee;
}

th {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
}

tr:nth-child(even) {
    background-color: var(--light-bg);
}

td:first-child {
    text-align: left;
    font-weight: 500;
}

.pricing-row td {
    font-weight: bold;
    font-size: 1.1rem;
    color: var(--primary-color);
}

.action-row td {
    padding: 10px;
}

.action-row .btn {
    padding: 8px 15px;
    font-size: 0.9rem;
}

.fas.fa-check {
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* CTA区域 */
.service-cta {
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/cta-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
}

.cta-content h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.cta-content p {
    max-width: 700px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .service-tab {
        flex-direction: column;
    }
    
    .service-image {
        order: -1;
        margin-bottom: 30px;
    }
    
    .process-steps {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .page-hero {
        padding: 100px 0 60px;
    }
    
    .category-tabs {

        overflow-x: auto;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
    }
    
    .process-steps {
        grid-template-columns: 1fr;
    }
    
    .service-features ul {
        grid-template-columns: 1fr;
    }
}

/* end services */



/* 案例页面特定样式 */
.portfolio-hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-align: center;
    padding: 120px 0 80px;
    margin-top: 80px;
}

.portfolio-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.portfolio-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.portfolio-section {
    padding: 80px 0;
}

.portfolio-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 8px 20px;
    background: none;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--light-text);
    border: 1px solid #ddd;
}

.filter-btn:hover, .filter-btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.portfolio-item {
    background-color: var(--bg-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-10px);
}

.portfolio-image {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.05);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.view-btn {
    padding: 10px 18px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 500;
    cursor: pointer;
    line-height: 1.2;
}

.portfolio-content {
    padding: 20px;
}

.portfolio-content h3 {
    margin-bottom: 10px;
    color: var(--text-color);
}

.portfolio-content p {
    color: var(--light-text);
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.portfolio-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--light-text);
}

.portfolio-industry {
    background-color: var(--light-bg);
    padding: 3px 10px;
    border-radius: 20px;
}

.testimonials-section {
    padding: 60px 0;
    background-color: var(--light-bg);
}

.testimonial-slider {
    margin-top: 40px;
}

.testimonial-item {
    background-color: var(--bg-color);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin: 15px 15px;
}

.testimonial-content {
    font-style: italic;
    margin-bottom: 20px;
    color: var(--light-text);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h4 {
    margin-bottom: 5px;
    color: var(--text-color);
}

.author-info p {
    color: var(--light-text);
    font-size: 0.8rem;
}

@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio-image {
        height: 200px;
    }
}

/* end portfolio */



/* 关于我们页面特定样式 */
.stats-section .section-title{
    color:#fff;
}
.about-hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-align: center;
    padding: 120px 0 80px;
    margin-top: 80px;
}

.about-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}


.about-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.about-story {
    padding: 80px 0;
}

.story-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.story-text {
    flex: 1;
}

.story-image {
    flex: 1;
    text-align: center;
}

.story-image img {
    max-width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.team-section {
    padding: 60px 0;
    background-color: var(--light-bg);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.team-member {
    background-color: var(--bg-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease;
}

.team-member:hover {
    transform: translateY(-10px);
}

.member-image {
    height: 300px;
    overflow: hidden;
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.team-member:hover .member-image img {
    transform: scale(1.05);
}

.member-info {
    padding: 20px;
    text-align: center;
}

.member-info h3 {
    margin-bottom: 5px;
    color: var(--primary-color);
}

.member-info p.position {
    color: var(--light-text);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.member-social {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.member-social a {
    color: var(--text-color);
    transition: color 0.3s ease;
}

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

.stats-section {
    padding: 80px 0;
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('../images/stats-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.stat-item {
    padding: 30px 20px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.stat-text {
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .story-content {
        flex-direction: column;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .member-image {
        height: 250px;
    }
}

/* end about */



/* 联系我们页面特定样式 */
.contact-hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-align: center;
    padding: 120px 0 80px;
    margin-top: 80px;
}

.contact-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.contact-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.contact-section {
    padding: 80px 0;
}

.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.info-icon {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.info-content h3 {
    margin-bottom: 10px;
    color: var(--text-color);
}

.info-content p, .info-content a {
    color: var(--light-text);
    transition: color 0.3s ease;
}

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

.contact-form {
    background-color: var(--light-bg);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}
.contact-form br{
    display: none;
}
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.submit-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: var(--secondary-color);
}

.map-container {
    margin-top: 60px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.map-container iframe {
    width: 100%;
    height: 400px;
    border: none;
}

@media (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .contact-form {
        padding: 30px 20px;
    }
}
/* end contact */



/* archive page */
.archive .blog-hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-align: center;
    padding: 120px 0 80px;
    margin-top: 80px;
}

.archive .blog-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.archive .blog-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.archive .blog-section {
    padding: 80px 0;
}

.archive .blog-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.archive .blog-posts {
    display: grid;
    gap: 40px;
}

.archive .blog-post {
    background-color: var(--bg-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease;
}

.archive .blog-post:hover {
    transform: translateY(-5px);
}

.archive .post-image {
    height: 300px;
    overflow: hidden;
}

.archive .post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.archive .blog-post:hover .post-image img {
    transform: scale(1.05);
}

.archive .post-content {
    padding: 30px;
}

.archive .post-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: var(--light-text);
}

.archive .post-category {
    background-color: var(--light-bg);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
}

.archive .post-content h2 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.archive .post-content p {
    margin-bottom: 20px;
    color: var(--light-text);
}

.archive .read-more {
    color: var(--primary-color);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.archive .read-more i {
    transition: transform 0.3s ease;
}

.archive .read-more:hover i {
    transform: translateX(3px);
}

.archive .blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.archive .sidebar-widget {
    background-color: var(--light-bg);
    padding: 25px;
    border-radius: var(--border-radius);
}

.archive .widget-title {
    font-size: 1.2rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.archive .search-form {
    display: flex;
}

.archive .search-input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-right: none;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
}

.archive .search-button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0 15px;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    cursor: pointer;
}

.archive .categories-list {
    list-style: none;
}

.archive .categories-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.archive .categories-list a {
    display: flex;
    justify-content: space-between;
    color: var(--text-color);
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
    transition: color 0.3s ease;
}

.archive .categories-list a:hover {
    color: var(--primary-color);
}

.archive .recent-posts {
    display: grid;
    gap: 15px;
}

.archive .recent-post {
    display: flex;
    gap: 15px;
    align-items: center;
}

.archive .recent-post img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--border-radius);
}

.archive .recent-post h4 {
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.archive .recent-post span {
    font-size: 0.8rem;
    color: var(--light-text);
}

.archive .tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.archive .tag {
    background-color: var(--bg-color);
    color: var(--text-color);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.archive .tag:hover {
    background-color: var(--primary-color);
    color: white;
}

.archive .pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 50px;
}

.archive .pagination .page-numbers{
    display: flex;
    gap: 15px;
    align-items: center;
}

.archive .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--light-bg);
    color: var(--text-color);
    transition: all 0.3s ease;
}

.archive .page-link:hover,
.archive .page-link.active {
    background-color: var(--primary-color);
    color: white;
}

.archive .tags-cloud a {
    margin-right: 8px;
    text-decoration: none;
    color: #333;
}
.archive .tags-cloud a:hover {
    color: #0073aa;
}

@media (max-width: 992px) {
    .archive .blog-container {
        grid-template-columns: 1fr;
    }

    .archive .blog-sidebar {
        grid-row: 1;
    }
}

@media (max-width: 768px) {
    .archive .post-image {
        height: 200px;
    }
}




/* end archive */



/* 博客详情页主容器布局 */

.single .blog-post {
    margin-top: 80px;
}

.single .blog-post .container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    padding: 60px 15px;
}

/* 左侧内容区 */
.single .post-content {
    flex: 1 1 65%;
}

.single .post-content h1 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #222;
}

.single .post-content ol,.single .post-content ul{
    margin:10px 20px;
}

.single .post-meta {
    font-size: 14px;
    color: #888;
    margin-bottom: 20px;
    display: flex;
    gap: 15px;
}

.single .post-meta i {
    margin-right: 5px;
}

.single .post-cover {
    max-width: 100%;
    border-radius: 8px;
    margin: 20px 0;
    height: auto;
}

.single .post-content h2 {
    margin-top: 30px;
    font-size: 1.4rem;
    color: #333;
}

.single .post-content h3 {
    margin-top: 20px;
}

.single .post-content h4 {
    margin-top: 15px;
}

.single .post-content p {
    line-height: 1.8;
    margin: 15px 0;
    color: #444;
}

.single .post-content a {
    text-decoration: none;
    color: #007bff;
    transition: all 0.3s;
}

.single .post-content a:hover
 {
    text-decoration: underline;
}

.single .post-content img {
    max-width: 100%;
    height: auto;
}

/* code */
.single .post-content .contain-inline-size{
    background-color: var(--light-bg);
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 10px;
}


/* 分享图标 */
.single .post-footer {
    margin-top: 40px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.single .share-icons a {
    display: inline-block;
    margin-right: 10px;
    color: #666;
    font-size: 18px;
    transition: color 0.3s;
}

.single .share-icons a:hover {
    color: #007bff;
}

/* 右侧推荐区域 */
.single .sidebar {
    flex: 1 1 30%;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
}

.single .sidebar h3 {
    margin-bottom: 20px;
    font-size: 1.2rem;
    color: #222;
}

.single .recommended-posts li {
    margin-bottom: 12px;
}

.single .recommended-posts a {
    text-decoration: none;
    color: #007bff;
    transition: all 0.3s;
}

.single .recommended-posts a:hover {
    text-decoration: underline;
}



/* 响应式布局 */
@media (max-width: 768px) {
    .single .blog-post .container {
        flex-direction: column;
    }

    .single .sidebar {
        margin-top: 40px;
    }
}


/* end single */

