@charset "utf-8";
/*
    Theme Name: 神奇的工作室
    Theme URI: https://www.sqdgzs.net/
    Author: 阿叶
    Author URI: https://www.sqdgzs.net/
    Description: 神奇的工作室
    Version: v1.0.0
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary: #6a11cb;
    --secondary: #2575fc;
    --accent: #ff2d75;
    --dark: #0f0c29;
    --darker: #090618;
    --light: #f8f9fa;
    --gray: #6c757d;
    --transition: all 0.3s ease;
}

body {
    background: linear-gradient(135deg, var(--darker), var(--dark));
    color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* 导航栏样式 */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background-color: rgba(15, 12, 41, 0.9);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(106, 17, 203, 0.3);
}

.logo {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: 700;
    color: var(--light);
    text-decoration: none;
}
.logo img {
    height: 40px;
}
.logo span {
    color: var(--accent);
}

.logo i {
    margin-right: 10px;
    color: var(--secondary);
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    margin-left: 50px;
}

.nav-menu a {
    color: var(--light);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding: 5px 0;
    transition: var(--transition);
}

.nav-menu a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
}

.nav-menu a:hover {
    color: var(--secondary);
}

.nav-menu a:hover:after {
    width: 100%;
}

.btn {
    display: inline-block;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: white;
    padding: 12px 28px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(37, 117, 252, 0.3);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 117, 252, 0.5);
}

.btn-accent {
    background: linear-gradient(90deg, var(--accent), #ff5e8d);
}

.btn-accent:hover {
    box-shadow: 0 6px 20px rgba(255, 45, 117, 0.5);
}

/* 主体内容容器 */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 130px 20px 80px 20px
}

/* 产品介绍部分 */
.intro {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
    padding: 40px;
    background: rgba(15, 12, 41, 0.7);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.intro::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(106, 17, 203, 0.1) 0%, transparent 70%);
    z-index: -1;
}

.intro-text {
    flex: 1;
    padding-right: 40px;
}
.intro-text .btn {
    margin-top: 20px;
}
.intro-image {
    flex: 1;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    position: relative;
}
.intro-image .swiper-slide {
    position: relative;
    overflow: hidden;
    height: 320px;
}
.intro-image .swiper-slide img {
    height: 100%;
    width: aotu;
}
.intro-image img {
    display: block;
    transition: var(--transition);
}

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

.section-title {
    font-size: 30px;
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
    font-weight: bold; /* 添加加粗效果 */
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--secondary);
    margin-bottom: 15px;
    font-weight: bold; /* 添加加粗效果 */
}

/* 产品列表部分 */
.products {
    margin-bottom: 40px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 40px;
}

.product-card {
    background: rgba(15, 12, 41, 0.7);
    border-radius: 15px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    position: relative;
    border: 1px solid rgba(106, 17, 203, 0.2);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(37, 117, 252, 0.3);
    border-color: rgba(37, 117, 252, 0.5);
}

.product-image {
    height: 160px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-content {
    padding: 20px;
}

.product-title {
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: bold; /* 添加加粗效果 */
}

.product-price {
    color: var(--accent);
    font-weight: 700;
    font-size: 16px;
    margin: 15px 0;
}
.product-content .btn {
    display: block;
    text-align: center;
}


.news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin: 40px 0;
}

.news-card {
    background: rgba(15, 12, 41, 0.7);
    border-radius: 15px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    position: relative;
    border: 1px solid rgba(106, 17, 203, 0.2);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(37, 117, 252, 0.3);
    border-color: rgba(37, 117, 252, 0.5);
}

.news-image {
    height: 150px;
    overflow: hidden;
    position: relative;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-date {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: rgba(37, 117, 252, 0.85);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.news-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-title {
    font-size: 17px;
    margin-bottom: 15px;
    color: var(--light);
    transition: var(--transition);
}

.news-title:hover {
    color: var(--secondary);
}

.news-excerpt {
    color: var(--gray);
    margin-bottom: 20px;
    flex: 1;
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	text-overflow: ellipsis;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid rgba(106, 17, 203, 0.2);
}

.news-category {
    background: rgba(106, 17, 203, 0.2);
    color: var(--secondary);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.read-more {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.read-more i {
    margin-left: 5px;
    transition: var(--transition);
}

.read-more:hover {
    color: var(--accent);
}

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


/* 评价部分 */
.testimonials {}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.testimonial-card {
    background: rgba(15, 12, 41, 0.7);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(37, 117, 252, 0.2);
    position: relative;
}

.testimonial-card:before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 60px;
    color: var(--secondary);
    opacity: 0.3;
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-content {
    margin: 20px 0;
    font-style: italic;
    position: relative;
    z-index: 1;
}

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

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
    border: 2px solid var(--secondary);
}

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

.author-info .name {
    font-size: 18px;
    margin-bottom: 5px;
    font-weight: bold; /* 添加加粗效果 */
}

.author-info p {
    color: var(--secondary);
    font-size: 14px;
}

.rating {
    color: #ffc107;
    margin: 15px 0;
}

/* 页脚 */
.footer {
    background: var(--darker);
    padding: 60px 0 30px;
    text-align: center;
}

.footer-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-logo {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    display: inline-block;
}

.footer-links {
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 30px 0;
}

.footer-links li {
    margin: 0 15px;
}

.footer-links a {
    color: var(--light);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--secondary);
}
.atime {
    font-size: 13px;
    color: #fff;
    opacity: .3;
}
.single-content {
    margin-top: 30px;
}
.single-content p {
    line-height: 36px;
}

.copyright {
    margin-top: 25px;
    color: var(--gray);
    font-size: 14px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* 装饰元素 */
.decoration {
    position: absolute;
    z-index: -1;
    opacity: 0.1;
}

.controller {
    position: absolute;
    top: 15%;
    right: 5%;
    font-size: 100px;
    transform: rotate(20deg);
}

.pixel-grid {
    position: absolute;
    bottom: 10%;
    left: 5%;
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, var(--primary) 25%, transparent 25%, transparent 75%, var(--primary) 75%), linear-gradient(45deg, var(--primary) 25%, transparent 25%, transparent 75%, var(--primary) 75%);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
    opacity: 0.1;
}

/* 响应式设计 */
@media (max-width: 900px) {
    .products-grid,
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .intro {
        flex-direction: column;
    }
    .intro-text {
        padding-right: 0;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 100px 15px 80px 15px;
    }
    .intro {
        padding: 20px;
    }
    .products-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    .nav-menu {
        display: none;
    }
    .section-title {
        font-size: 28px;
    }
    .intro-image {
        display: none;
    }
}