 /**
 * =========================================================================
 *
 *                      XingHan-Team 官网程序 - 白色主题UI
 * =========================================================================
 *
 * @package     XingHan-Team Official Website
 * @author      XingHan Development Team
 * @copyright   Copyright (c) 2024, XingHan-Team
 * @link        https://www.ococn.cn
 * @since       Version 2.0.0 - White Theme
 * @filesource  By 奉天
 *
 * =========================================================================
 *
 * XingHan-Team 星涵网络工作室官方网站管理系统 - 白色主题版本
 * 版权所有 (C) 2024 XingHan-Team。保留所有权利。
 *
 * 本软件受著作权法和国际公约的保护。
 *
 * 感谢您选择 XingHan-Team 的产品。如有任何问题或建议，请联系我们。
 *
 * =========================================================================
 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    line-height: 1.6;
    color: #333333;
    background-color: #ffffff;
}

header {
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
    position: fixed;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 1px 10px rgba(0, 0, 0, 0.05);
}

header.scrolled {
    background-color: rgba(255, 255, 255, 1);
    box-shadow: 0 2px 25px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #333333;
    background: linear-gradient(135deg, #333333 0%, #666666 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    text-decoration: none;
    color: #333333;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background-color: #666666;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
}

nav ul li a:hover {
    color: #666666;
}

/* 移动端菜单样式 */
.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: #fff;
}

header.scrolled .menu-toggle {
    color: #333;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #fff;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }

    nav ul.show {
        display: flex;
    }

    nav ul li {
        margin: 0;
        text-align: center;
    }

    nav ul li a {
        display: block;
        padding: 1rem;
        color: #333;
    }
}

main {
    padding-top: 0;
}

section {
    padding: 6rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

section.hero {
    padding: 0;
    height: 100vh;
    max-width: none;
}

.hero {
    position: relative;
    color: #ffffff;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.fullscreen-swiper {
    width: 100%;
    height: 100vh;
}

.swiper-slide {
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.swiper-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(1px);
}

.slide-content {
    text-align: center;
    max-width: 80%;
    color: #333333;
    padding: 30px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.slide-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #333333;
    font-weight: 700;
    text-shadow: none;
}

.slide-content p {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #666666;
    text-shadow: none;
    font-weight: 300;
}

.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: #cccccc;
    opacity: 0.7;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.swiper-pagination-bullet-active {
    opacity: 1;
    background: #666666;
    transform: scale(1.2);
}

/* 移除导航按钮样式 */
.swiper-button-next,
.swiper-button-prev {
    display: none;
}

/* 调整分页指示器位置 */
.swiper-pagination {
    bottom: 20px !important;
}

@media (max-width: 768px) {
    .slide-content h1 {
        font-size: 2rem;
    }

    .slide-content p {
        font-size: 1rem;
    }
    section.hero {
        height: 60vh;
    }
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, #666666 0%, #999999 100%);
    color: #ffffff;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 15px rgba(102, 102, 102, 0.3);
    font-size: 1.1rem;
}

.cta-button:hover {
    background: linear-gradient(135deg, #999999 0%, #666666 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 102, 102, 0.4);
    color: #ffffff;
}

h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: #333333;
    font-weight: 700;
    position: relative;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.about-image {
    flex: 0 0 50%;
    max-width: 50%;
}

.about-img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.about-text {
    flex: 1;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

@media (max-width: 768px) {
    .about-content {
        flex-direction: column;
        gap: 2rem;
    }

    .about-image {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 0 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.service-item {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.4s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.service-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.service-icon {
    font-size: 4rem;
    color: #666666;
    margin-bottom: 1.5rem;
    transition: all 0.4s ease;
    position: relative;
    z-index: 2;
    display: inline-block;
}

.service-item:hover .service-icon {
    transform: scale(1.1);
    color: #333333;
}

.service-item h3 {
    color: #333333;
    margin-bottom: 1rem;
    font-size: 1.6rem;
    position: relative;
    z-index: 2;
    font-weight: 600;
}

.service-item p {
    color: #666666;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
    line-height: 1.7;
}

.service-decoration {
    position: absolute;
    bottom: -60px;
    right: -60px;
    width: 180px;
    height: 180px;
    background: linear-gradient(135deg, rgba(102, 102, 102, 0.08) 0%, rgba(102, 102, 102, 0.04) 100%);
    border-radius: 50%;
    z-index: 1;
    transition: all 0.4s ease;
}

.service-item:hover .service-decoration {
    transform: scale(1.3);
    background: linear-gradient(135deg, rgba(102, 102, 102, 0.12) 0%, rgba(102, 102, 102, 0.06) 100%);
}

.service-link {
    display: inline-block;
    color: #666666;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.service-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: #666666;
    transition: width 0.3s ease;
}

.service-link:hover::after {
    width: 100%;
}

.service-link:hover {
    color: #333333;
}

.service-link i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.service-link:hover i {
    transform: translateX(5px);
}

footer {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #333333;
    padding: 3rem 1rem 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-info {
    text-align: center;
}

.footer-info p {
    color: #666666;
    font-size: 0.95rem;
}

.footer-contact {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.contact-link {
    color: #666666;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.05);
    font-weight: 500;
}

.contact-link:hover {
    background: rgba(102, 102, 102, 0.1);
    color: #333333;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.contact-link i {
    font-size: 1.1em;
}

@media (max-width: 768px) {
    .footer-contact {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    .contact-link {
        padding: 0.3rem 0.5rem;
        font-size: 0.9em;
    }
}

/* 联系信息弹窗样式 */
.contact-modal-content {
    padding: 1rem 0;
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1rem 0;
}

.contact-item {
    text-align: center;
}

.contact-item .contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.contact-item .contact-link:hover {
    background-color: #007bff;
    color: #fff;
    border-color: #007bff;
    text-decoration: none;
}

.contact-item .contact-link i {
    font-size: 1.2em;
}

/* 图片上传样式 */
.image-upload-container {
    margin-bottom: 0.5rem;
}

.image-preview {
    margin-top: 0.5rem;
    padding: 0.5rem;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    background-color: #f8f9fa;
}

.image-preview img {
    display: block;
    margin: 0 auto;
}

@media (max-width: 768px) {
    nav {
        flex-direction: column;
    }

    nav ul {
        margin-top: 1rem;
    }

    nav ul li {
        margin-left: 0;
        margin-right: 1rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

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

    .about-content {
        flex-direction: column;
        padding: 2rem;
    }

    .about-image {
        max-width: 100%;
    }

    section {
        padding: 4rem 5%;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 0 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.team-member {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.team-member:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

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

.team-member-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s ease;
}

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

.member-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 102, 102, 0.05) 0%, rgba(102, 102, 102, 0.02) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.team-member:hover .member-image::after {
    opacity: 1;
}

.member-info {
    padding: 2.5rem;
    text-align: center;
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.member-info h3 {
    margin: 0.5rem 0;
    color: #333333;
    font-size: 1.8rem;
    font-weight: 700;
}

.position {
    font-style: italic;
    color: #666666;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 400;
}

.bio {
    font-size: 1rem;
    line-height: 1.7;
    color: #555555;
    margin-bottom: 1.5rem;
}

.member-social {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: auto;
}

.social-icon {
    color: #666666;
    font-size: 1.6rem;
    transition: all 0.3s ease;
    padding: 8px;
    border-radius: 50%;
    background: rgba(102, 102, 102, 0.05);
}

.social-icon:hover {
    transform: scale(1.1);
    color: #333333;
    background: rgba(102, 102, 102, 0.1);
}

.member-number {
    position: absolute;
    bottom: 10px;
    right: 15px;
    font-size: 5rem;
    font-weight: bold;
    color: rgba(102, 102, 102, 0.08);
    line-height: 1;
    z-index: 0;
}

@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .member-image {
        height: 250px;
    }

    .member-info {
        padding: 1.5rem;
    }

    .member-number {
        font-size: 4rem;
    }

    .member-info h3 {
        font-size: 1.5rem;
    }

    .position {
        font-size: 1rem;
    }

    .bio {
        font-size: 0.9rem;
    }

    .social-icon {
        font-size: 1.3rem;
    }
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 0 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.portfolio-item {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.portfolio-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.portfolio-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.portfolio-info {
    padding: 2rem;
}

.portfolio-info h3 {
    margin-bottom: 0.5rem;
    color: #333333;
    font-size: 1.3rem;
    font-weight: 600;
}

.portfolio-info p {
    margin-bottom: 1.5rem;
    color: #666666;
    font-size: 0.95rem;
    line-height: 1.6;
}

.portfolio-info .btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #666666 0%, #999999 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
    border: none;
    box-shadow: 0 3px 10px rgba(102, 102, 102, 0.2);
}

.portfolio-info .btn:hover {
    background: linear-gradient(135deg, #999999 0%, #666666 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 102, 102, 0.3);
}


@media (max-width: 1200px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
        padding: 0 15px;
    }

    .portfolio-item {
        max-width: 100%;
    }

    .portfolio-item img {
        height: auto;
        max-height: 250px;
    }

    .portfolio-info {
        padding: 1rem;
    }

    .portfolio-info h3 {
        font-size: 1.1rem;
    }

    .portfolio-info p {
        font-size: 0.85rem;
    }

    .portfolio-info .btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
}


#portfolio {
    max-width: 100%;
    overflow-x: hidden;
    padding-left: 15px;
    padding-right: 15px;
}


@media (max-width: 768px) {
    #portfolio {
        padding-left: 10px;
        padding-right: 10px;
    }

    .portfolio-grid {
        gap: 1.5rem;
    }
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding: 20px 0;
}

.section-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background-color: #007bff;
}

.section-header h2 {
    font-size: 2.5rem;
    color: #007bff;
    margin: 0;
    position: relative;
    z-index: 2;
}

.section-subtitle {
    position: absolute;
    top: 30%; 
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem; 
    font-weight: bold;
    color: rgba(0, 0, 0, 0.05);
    text-transform: uppercase;
    white-space: nowrap;
    z-index: 1;
}

#about, #services, #team, #portfolio {
    padding: 6rem 0;
}

.about-content, .service-grid, .team-grid, .portfolio-grid {
    margin-top: 3rem;
}



@media (max-width: 768px) {
    body {
        overflow-x: hidden; 
    }

    main {
        padding-left: 0;
        padding-right: 0;
    }

    section {
        padding-left: 15px;
        padding-right: 15px;
    }

    .about-content,
    .service-grid,
    .team-grid,
    .portfolio-grid {
        padding-left: 15px;
        padding-right: 15px;
    }

    .hero,
    .fullscreen-swiper,
    .swiper-slide {
        width: 100vw; 
        max-width: none;
    }

    .section-subtitle {
        font-size: 2rem; 
        top: 25%; 
    }
}


#about, #services, #team, #portfolio {
    max-width: 100%;
    overflow-x: hidden;
    padding-left: 5%;
    padding-right: 5%;
}


@media (max-width: 768px) {
    nav {
        padding: 1rem 15px;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    nav ul li {
        margin: 0.5rem;
    }
}

.portfolio-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #007bff;
    color: #fff;
    padding: 5px 10px;
    font-size: 0.8rem;
    font-weight: bold;
    border-radius: 20px;
    z-index: 2;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}


@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.portfolio-tag {
    animation: pulse 2s infinite;
}


@media (max-width: 768px) {
    .portfolio-tag {
        font-size: 0.7rem;
        padding: 3px 8px;
    }
}


#team-query {
    background-color: #f8f9fa;
    padding: 4rem 0;
    text-align: center;
}

.team-query-content {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.custom-btn {
    padding: 0.9rem 2.5rem;
    font-size: 1.1rem;
    border-radius: 50px;
    text-transform: uppercase;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    letter-spacing: 0.5px;
}

.btn-primary.custom-btn {
    background: linear-gradient(135deg, #666666 0%, #999999 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(102, 102, 102, 0.3);
}

.btn-primary.custom-btn:hover {
    background: linear-gradient(135deg, #999999 0%, #666666 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 102, 102, 0.4);
    color: #fff;
}

.btn-secondary.custom-btn {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #666666;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.btn-secondary.custom-btn:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #f8f9fa 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    color: #333333;
}

@media (max-width: 768px) {
    .team-query-content {
        flex-direction: column;
        align-items: center;
    }

    .custom-btn {
        width: 80%;
        margin-bottom: 1rem;
    }
}


#about, #services, #team, #portfolio, #team-query {
    max-width: 100%;
    overflow-x: hidden;
    padding-left: 5%;
    padding-right: 5%;
}


@media (max-width: 768px) {
    nav {
        padding: 1rem 15px;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    nav ul li {
        margin: 0.5rem;
    }
}


.modal-dialog {
    display: flex;
    align-items: center;
    min-height: calc(100% - 1rem);
}

@media (min-width: 576px) {
    .modal-dialog {
        max-width: 500px;
        margin: 1.75rem auto;
    }
}

.modal-content {
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}


.modal-footer {
    justify-content: center !important;
    padding: 1rem;
}

.modal-footer .btn {
    min-width: 100px;
    margin: 0 10px;
}

.modal-body {
    padding: 20px;
}

.modal-body form {
    margin-bottom: 0;
}


.modal-body .form-label {
    font-weight: bold;
}

.modal-body .form-control {
    margin-bottom: 15px;
}

.modal-header {
    border-bottom: 1px solid #e9ecef;
    background-color: #f8f9fa;
    padding: 1rem;
}

.modal-title {
    font-weight: bold;
    color: #007bff;
}

.modal-header .btn-close {
    margin: -0.5rem -0.5rem -0.5rem auto;
}

@media (max-width: 576px) {
    .modal-footer .btn {
        width: 100%;
        margin: 5px 0;
    }
}

.modal-content {
    max-height: 90vh;
    overflow-y: auto;
}

@media (min-width: 576px) {
    .modal-dialog {
        max-width: 500px;
        margin: 1.75rem auto;
    }
}


#studio-culture {
    background-color: #ffffff;
    padding: 4rem 5%;
}

.culture-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
    margin-top: 3rem;
}

.culture-item {
    flex-basis: calc(33.333% - 2rem);
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.culture-item h3 {
    color: #007bff;
    margin-bottom: 1rem;
}

.culture-item p {
    color: #333;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .culture-item {
        flex-basis: 100%;
    }
}

#studio-environment {
    background-color: #ffffff;
    padding: 4rem 5%;
}

.environment-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
    margin-top: 3rem;
}

.environment-item {
    flex-basis: calc(50% - 1rem);
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.environment-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.environment-info {
    padding: 1.5rem;
}

.environment-info h3 {
    color: #007bff;
    margin-bottom: 0.5rem;
}

.environment-info p {
    color: #333;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .environment-item {
        flex-basis: 100%;
    }
}

.logo-image {
    max-height: 50px;
    width: auto;
}

@media (max-width: 768px) {
    .logo-image {
        max-height: 40px;
    }
}

/* 登录页样式 */
.login-container {
    max-width: 400px;
    margin: 100px auto;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.login-form {
    display: flex;
    flex-direction: column;
}

.login-form input {
    margin-bottom: 15px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.login-form button {
    padding: 10px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.login-form button:hover {
    background-color: #0056b3;
}

.login-title {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

/* 软件下载样式 */
.software-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 0 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.software-item {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 18px rgba(0,0,0,0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: 0.5rem;
}

.software-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}

.software-image {
    flex: 0 0 80px;
    height: 70px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    padding: 6px;
    border-radius: 8px;
}

.software-img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.25s ease;
    display: block;
    margin: 0 auto;
}

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

.software-info {
    padding: 2rem;
}

.software-info h3 {
    color: #007bff;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.software-description {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.software-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.meta-item {
    background-color: #f8f9fa;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #666;
}

.download-btn {
    width: 100%;
    padding: 0.75rem;
    font-weight: bold;
    transition: all 0.3s ease;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,123,255,0.3);
}

/* 定制同款样式 */
#custom {
    background-color: #f8f9fa;
    padding: 6rem 0;
}

.custom-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* 新版软件下载样式 */
.software-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}
.software-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}
.software-card {
    display: flex;
    gap: 1rem;
    background: #fff;
    border-radius: 10px;
    padding: 12px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.06);
    align-items: center;
}
.software-thumb {
    flex: 0 0 80px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f6f8fb;
    border-radius: 8px;
    padding: 6px;
}
.software-thumb-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.software-body {
    flex: 1;
}
.software-title {
    margin: 0;
    font-size: 1.05rem;
    color: #0b5ed7;
}
.software-desc {
    margin: 6px 0 8px;
    color: #666;
    font-size: 0.95rem;
}
.software-meta-row {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 8px;
}
.software-actions {
    display: flex;
    gap: 0.5rem;
}

@media (min-width: 900px) {
    .software-list {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .software-card {
        flex-direction: column;
        align-items: stretch;
    }
    .software-thumb {
        width: 100%;
        height: 160px;
    }
}

.custom-intro {
    text-align: center;
    margin-bottom: 4rem;
}

.custom-intro h3 {
    color: #007bff;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.custom-intro p {
    font-size: 1.2rem;
    color: #666;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto 3rem;
}

.custom-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.feature-item {
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

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

.feature-item i {
    font-size: 3rem;
    color: #007bff;
    margin-bottom: 1rem;
}

.feature-item h4 {
    color: #007bff;
    margin-bottom: 1rem;
}

.feature-item p {
    color: #666;
    line-height: 1.6;
}

.custom-form-container {
    text-align: center;
}

.custom-btn-large {
    padding: 1rem 3rem;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.custom-btn-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,123,255,0.3);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .software-grid {
        grid-template-columns: 1fr;
        padding: 0 15px;
    }

    .software-info {
        padding: 1.5rem;
    }

    .software-meta {
        gap: 0.5rem;
    }

    .custom-intro h3 {
        font-size: 2rem;
    }

    .custom-features {
        grid-template-columns: 1fr;
    }

    .custom-content {
        padding: 0 15px;
    }
    /* Mobile: stack image above text */
    .software-item {
        flex-direction: column;
        align-items: stretch;
        padding: 0;
    }
    .software-image {
        width: 100%;
        flex: none;
        height: 160px;
        border-radius: 8px 8px 0 0;
    }
    .software-info {
        padding: 1rem;
    }
}