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

:root {
    --primary-color: #4f46e5;
    --primary-hover: #4338ca;
    --gradient-start: #4f46e5;
    --gradient-end: #7c3aed;
    --text-primary: #1f2937;
    --text-secondary: #4b5563;
    --bg-light: #f9fafb;
    --card-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --card-hover-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.5;
}

header h1 {
    font-size: 3em;
    margin-bottom: 15px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

header p {
    font-size: 1.2em;
    opacity: 0.9;
}

.projects {
    padding: 60px 0 40px 0;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    padding: 20px 0;
}

.project-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    position: relative;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--card-hover-shadow);
}

.project-image {
    width: 100%;
    padding: 0;
    background: var(--bg-light);
    position: relative;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.project-card h3 {
    padding: 25px 25px 10px;
    color: var(--text-primary);
    font-size: 1.5em;
    font-weight: 600;
    margin-top: 10px;
}

.project-card p {
    padding: 0 25px 20px;
    color: var(--text-secondary);
    font-size: 1.1em;
}

.project-features {
    padding: 0 25px 10px 40px;
    color: var(--text-secondary);
    font-size: 1em;
    margin-bottom: 0;
}

.project-features li {
    margin-bottom: 2px;
    list-style: disc;
}

.project-links {
    padding: 0 25px 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    width: 100%;
    text-align: center;
    font-weight: 500;
    font-size: 1.1em;
}

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

.qr-code {
    width: 100%;
    max-width: 150px;
    padding: 15px;
    background: var(--bg-light);
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.qr-code img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

footer {
    background: var(--text-primary);
    color: white;
    text-align: center;
    padding: 30px 0;
    margin-top: 40px;
}

@media (max-width: 768px) {
    header {
        padding: 60px 0;
    }

    header h1 {
        font-size: 2.5em;
    }

    .project-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .project-links {
        flex-direction: column;
    }
}

/* 轮播图样式 */
.carousel {
    position: relative;
    width: 100%;
    height: 200px;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 1px solid #f0f0f0;
}

.carousel-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 0;
    cursor: pointer;
    transition: transform 0.3s;
}

.carousel-prev, .carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.7);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 1.2em;
    color: var(--primary-color);
    cursor: pointer;
    z-index: 2;
    transition: background 0.2s;
}

.carousel-prev:hover, .carousel-next:hover {
    background: var(--primary-color);
    color: #fff;
}

.carousel-prev { left: 10px; }
.carousel-next { right: 10px; }

/* 弹窗样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    overflow: auto;
    background: rgba(0,0,0,0.6);
    align-items: center;
    justify-content: center;
}

.modal-content {
    display: block;
    margin: 60px auto;
    max-width: 90vw;
    max-height: 80vh;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    background: #fff;
}

.modal-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #fff;
    font-size: 2.5em;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    text-shadow: 0 2px 8px #000;
}

/* 二维码按钮样式 */
.qr-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0 0 0 8px;
    transition: transform 0.2s;
}

.qr-btn:hover {
    transform: scale(1.15);
}

.clickable {
    cursor: pointer;
    transition: box-shadow 0.2s, transform 0.2s;
}
.clickable:hover {
    box-shadow: 0 8px 32px rgba(79,70,229,0.15), 0 4px 6px -2px rgba(0,0,0,0.05);
    transform: translateY(-6px) scale(1.02);
}

.card-body.clickable {
    cursor: pointer;
    transition: background 0.2s;
    border-radius: 0 0 16px 16px;
}
.card-body.clickable:hover {
    background: #f3f4f6;
}

.qr-hover-img-global {
    display: none;
    position: absolute;
    width: 120px;
    height: 120px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    padding: 8px;
    z-index: 9999;
    justify-content: center;
    align-items: center;
}
.qr-hover-img-global img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card-horizontal {
    display: flex;
    flex-direction: row;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(79,70,229,0.08), 0 4px 6px -2px rgba(0,0,0,0.05);
    overflow: hidden;
    margin-bottom: 32px;
    min-height: 220px;
    transition: box-shadow 0.2s, transform 0.2s;
}
.card-horizontal:hover {
    box-shadow: 0 12px 40px rgba(79,70,229,0.16), 0 8px 12px -2px rgba(0,0,0,0.08);
    transform: translateY(-4px) scale(1.01);
}
.card-left {
    flex: 0 0 260px;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    border-right: 1px solid #f0f0f0;
}
.card-right {
    flex: 1 1 0;
    padding: 32px 32px 24px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
@media (max-width: 900px) {
    .card-horizontal {
        flex-direction: column;
    }
    .card-left {
        border-right: none;
        border-bottom: 1px solid #f0f0f0;
        min-height: 180px;
        width: 100%;
    }
    .card-right {
        padding: 24px 16px 20px 16px;
    }
}