/* 
 * MJ Magnets - 网站建设公司官网样式表
 * 儿童可爱风格 - 浅蓝 + 浅粉 + 亮黄配色
 * 锯齿状线条分割叠加布局
 */

/* ==================== 全局重置 ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Comic Sans MS', 'Chalkboard', 'Arial Rounded MT Bold', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #e8f4fc 0%, #fce4ec 50%, #fff9c4 100%);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==================== 顶部导航栏 ==================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 3px solid #ff6b9d;
}

.logo h1 {
    font-size: 1.8rem;
    color: #ff6b9d;
    font-weight: bold;
    text-shadow: 2px 2px 0px #ffd93d;
}

.nav-menu {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    display: block;
    padding: 10px 15px;
    border-radius: 25px;
    background: linear-gradient(135deg, #74b9ff, #a29bfe);
    color: white;
    font-weight: bold;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 0px #5a8fd8;
}

.nav-menu a:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 0px #5a8fd8;
    background: linear-gradient(135deg, #ff6b9d, #ff8e72);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #ff6b9d;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* ==================== 锯齿状分割线 ==================== */
.zigzag-divider {
    position: relative;
    height: 60px;
    margin: 40px 0;
    overflow: hidden;
}

.zigzag-divider::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #74b9ff 25%, transparent 25%) -30px 0,
                linear-gradient(225deg, #74b9ff 25%, transparent 25%) -30px 0,
                linear-gradient(315deg, #74b9ff 25%, transparent 25%),
                linear-gradient(45deg, #74b9ff 25%, transparent 25%);
    background-size: 60px 60px;
    background-color: #fce4ec;
    opacity: 0.3;
    animation: zigzag-move 3s linear infinite;
}

@keyframes zigzag-move {
    0% { background-position: -30px 0, -30px 0, 0 0, 0 0; }
    100% { background-position: 30px 0, 30px 0, 60px 0, 60px 0; }
}

/* ==================== Hero Banner ==================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 20px 60px;
    background: linear-gradient(135deg, #74b9ff 0%, #a29bfe 50%, #ff6b9d 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero h2 {
    font-size: 3.5rem;
    color: white;
    margin-bottom: 20px;
    text-shadow: 3px 3px 0px rgba(0,0,0,0.2);
    animation: bounce-in 1s ease;
}

@keyframes bounce-in {
    0% { transform: scale(0.5); opacity: 0; }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

.hero p {
    font-size: 1.3rem;
    color: white;
    margin-bottom: 30px;
    animation: fade-in-up 1s ease 0.3s both;
}

@keyframes fade-in-up {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fade-in-up 1s ease 0.6s both;
}

.btn {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, #ffd93d, #ff6b9d);
    color: white;
    box-shadow: 0 6px 0px #e55a8a;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 0px #e55a8a;
}

.btn-secondary {
    background: linear-gradient(135deg, #74b9ff, #a29bfe);
    color: white;
    box-shadow: 0 6px 0px #5a8fd8;
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 0px #5a8fd8;
}

/* ==================== 核心优势板块 ==================== */
.features {
    padding: 80px 20px;
    background: #fff;
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h3 {
    font-size: 2.5rem;
    color: #ff6b9d;
    margin-bottom: 15px;
    text-shadow: 2px 2px 0px #ffd93d;
}

.section-title p {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: linear-gradient(135deg, #e8f4fc, #fce4ec);
    padding: 30px;
    border-radius: 30px;
    text-align: center;
    transition: all 0.3s ease;
    border: 4px solid transparent;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.3), transparent);
    transform: rotate(45deg);
    transition: all 0.5s ease;
    opacity: 0;
}

.feature-card:hover::before {
    opacity: 1;
    left: 100%;
}

.feature-card:hover {
    transform: translateY(-10px) scale(1.05);
    border-color: #ff6b9d;
    box-shadow: 0 15px 40px rgba(255, 107, 157, 0.3);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #74b9ff, #a29bfe);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

.feature-card h4 {
    font-size: 1.4rem;
    color: #ff6b9d;
    margin-bottom: 15px;
}

.feature-card p {
    color: #666;
    line-height: 1.8;
}

/* ==================== 快速入口 ==================== */
.quick-links {
    padding: 80px 20px;
    background: linear-gradient(135deg, #fff9c4, #ffe0b2);
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.link-item {
    background: white;
    padding: 25px;
    border-radius: 25px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.link-item:hover {
    transform: translateY(-8px) rotate(3deg);
    box-shadow: 0 10px 30px rgba(255, 107, 157, 0.3);
}

.link-item .icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.link-item h5 {
    color: #ff6b9d;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

/* ==================== 资讯列表 ==================== */
.news-section {
    padding: 80px 20px;
    background: #fff;
}

.news-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.news-tab {
    padding: 12px 30px;
    border-radius: 30px;
    background: linear-gradient(135deg, #74b9ff, #a29bfe);
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 0px #5a8fd8;
}

.news-tab:hover, .news-tab.active {
    background: linear-gradient(135deg, #ff6b9d, #ff8e72);
    box-shadow: 0 4px 0px #e55a8a;
    transform: translateY(-2px);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.news-card {
    background: white;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(255, 107, 157, 0.3);
}

.news-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-content {
    padding: 25px;
}

.news-content h4 {
    color: #ff6b9d;
    font-size: 1.3rem;
    margin-bottom: 10px;
    line-height: 1.4;
}

.news-content p {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 15px;
    line-height: 1.7;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    color: #999;
    font-size: 0.85rem;
}

/* ==================== 页脚 ==================== */
.footer {
    background: linear-gradient(135deg, #2d3436, #636e72);
    color: white;
    padding: 60px 20px 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto 40px;
}

.footer-section h4 {
    color: #ffd93d;
    font-size: 1.4rem;
    margin-bottom: 20px;
    text-shadow: 1px 1px 0px rgba(0,0,0,0.3);
}

.footer-section p, .footer-section a {
    color: #dfe6e9;
    line-height: 2;
    display: block;
}

.footer-section a:hover {
    color: #ff6b9d;
    padding-left: 10px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 2px dashed rgba(255,255,255,0.3);
    color: #b2bec3;
}

/* ==================== 通用页面样式 ==================== */
.page-header {
    background: linear-gradient(135deg, #74b9ff, #a29bfe, #ff6b9d);
    padding: 150px 20px 80px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.2) 0%, transparent 50%);
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    text-shadow: 3px 3px 0px rgba(0,0,0,0.2);
    position: relative;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    position: relative;
}

.page-content {
    padding: 80px 20px;
    background: #fff;
}

/* ==================== 服务卡片 ==================== */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 35px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: linear-gradient(135deg, #e8f4fc, #fce4ec);
    border-radius: 30px;
    padding: 35px;
    text-align: center;
    transition: all 0.3s ease;
    border: 4px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px) scale(1.03);
    border-color: #74b9ff;
    box-shadow: 0 15px 50px rgba(116, 185, 255, 0.3);
}

.service-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 20px;
    margin-bottom: 20px;
}

.service-card h3 {
    color: #ff6b9d;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.service-card p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 20px;
}

/* ==================== 案例展示 ==================== */
.case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.case-card {
    background: white;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.case-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(116, 185, 255, 0.3);
}

.case-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.case-info {
    padding: 25px;
}

.case-info h3 {
    color: #ff6b9d;
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.case-info p {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.7;
}

.case-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.case-tag {
    background: linear-gradient(135deg, #74b9ff, #a29bfe);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
}

/* ==================== 团队介绍 ==================== */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.team-card {
    background: linear-gradient(135deg, #fff9c4, #ffe0b2);
    border-radius: 30px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.team-card:hover {
    transform: translateY(-10px) rotate(2deg);
    box-shadow: 0 15px 40px rgba(255, 217, 61, 0.3);
}

.team-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto 20px;
    border: 5px solid #ff6b9d;
    object-fit: cover;
}

.team-card h3 {
    color: #ff6b9d;
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.team-card .position {
    color: #74b9ff;
    font-weight: bold;
    margin-bottom: 15px;
}

.team-card p {
    color: #666;
    line-height: 1.7;
}

/* ==================== 联系表单 ==================== */
.contact-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, #e8f4fc, #fce4ec);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info h3 {
    color: #ff6b9d;
    font-size: 1.8rem;
    margin-bottom: 25px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #74b9ff, #a29bfe);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.contact-form {
    background: white;
    padding: 40px;
    border-radius: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    color: #ff6b9d;
    font-weight: bold;
    margin-bottom: 10px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 15px 20px;
    border: 3px solid #e8f4fc;
    border-radius: 15px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #74b9ff;
    box-shadow: 0 0 0 4px rgba(116, 185, 255, 0.2);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: white;
        flex-direction: column;
        padding: 30px;
        gap: 15px;
        transition: all 0.3s ease;
        overflow-y: auto;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu a {
        width: 100%;
        text-align: center;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .hero h2 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .section-title h3 {
        font-size: 1.8rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .features-grid,
    .service-grid,
    .case-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.4rem;
    }

    .hero h2 {
        font-size: 1.8rem;
    }

    .btn {
        padding: 12px 25px;
        font-size: 1rem;
    }

    .hero-btns {
        flex-direction: column;
        align-items: center;
    }
}

/* ==================== 动画效果 ==================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==================== 面包屑导航 ==================== */
.breadcrumb {
    background: #f8f9fa;
    padding: 15px 20px;
    margin-top: 80px;
}

.breadcrumb-list {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.breadcrumb-list a {
    color: #74b9ff;
    transition: all 0.3s ease;
}

.breadcrumb-list a:hover {
    color: #ff6b9d;
}

.breadcrumb-list span {
    color: #999;
}

/* ==================== 新闻详情 ==================== */
.news-detail {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

.news-detail-header {
    margin-bottom: 30px;
}

.news-detail-header h1 {
    color: #ff6b9d;
    font-size: 2.2rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.news-detail-meta {
    display: flex;
    gap: 20px;
    color: #999;
    flex-wrap: wrap;
}

.news-detail-content {
    line-height: 2;
    color: #333;
}

.news-detail-content img {
    max-width: 100%;
    margin: 20px auto;
    border-radius: 15px;
}

.related-news {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 3px dashed #e8f4fc;
}

.related-news h3 {
    color: #ff6b9d;
    margin-bottom: 25px;
    font-size: 1.6rem;
}

/* ==================== 关于我们页面 ==================== */
.about-intro {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}

.about-text h3 {
    color: #ff6b9d;
    font-size: 2rem;
    margin-bottom: 20px;
}

.about-text p {
    color: #666;
    line-height: 2;
    margin-bottom: 20px;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.stat-item {
    background: linear-gradient(135deg, #74b9ff, #a29bfe);
    padding: 25px;
    border-radius: 20px;
    text-align: center;
    color: white;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

.about-image img {
    width: 100%;
    border-radius: 30px;
    box-shadow: 0 15px 50px rgba(116, 185, 255, 0.3);
}

/* ==================== 报价方案 ==================== */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 35px;
    max-width: 1200px;
    margin: 0 auto;
}

.pricing-card {
    background: white;
    border-radius: 30px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 4px solid transparent;
    position: relative;
    overflow: hidden;
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 10px;
    background: linear-gradient(90deg, #74b9ff, #a29bfe, #ff6b9d, #ffd93d);
}

.pricing-card:hover {
    transform: translateY(-15px);
    border-color: #ff6b9d;
    box-shadow: 0 20px 60px rgba(255, 107, 157, 0.3);
}

.pricing-card.featured {
    transform: scale(1.05);
    border-color: #ffd93d;
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-15px);
}

.pricing-card h3 {
    color: #ff6b9d;
    font-size: 1.6rem;
    margin-bottom: 15px;
}

.pricing-price {
    font-size: 3rem;
    color: #74b9ff;
    font-weight: bold;
    margin-bottom: 10px;
}

.pricing-price span {
    font-size: 1rem;
    color: #999;
}

.pricing-features {
    margin: 30px 0;
    text-align: left;
}

.pricing-features li {
    padding: 10px 0;
    border-bottom: 1px dashed #e8f4fc;
    color: #666;
}

.pricing-features li:last-child {
    border-bottom: none;
}
