 /**
 * =========================================================================
 * 
 *                      XingHan-Team 官网程序 
 * =========================================================================
 * 
 * @package     XingHan-Team Official Website
 * @author      XingHan Development Team
 * @copyright   Copyright (c) 2024, XingHan-Team
 * @link        https://www.ococn.cn
 * @since       Version 1.0.0
 * @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: #333;
    background-color: #f8f9fa;
}

header {
    background-color: transparent;
    transition: background-color 0.3s ease;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px 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: #007bff;
}

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

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

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

header.scrolled nav ul li a {
    color: #333;
}

nav ul li a:hover {
    color: #007bff;
}

/* 移动端菜单样式 */
.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: #fff;
    text-align: center;
    overflow: hidden;
}

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

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

.slide-content {
    text-align: center;
    max-width: 80%;
    color: #fff;
    padding: 20px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 10px;
}

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

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

.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: #fff;
    opacity: 0.7;
}

.swiper-pagination-bullet-active {
    opacity: 1;
    background: #007bff;
}

/* 移除导航按钮样式 */
.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;
    }
}

.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-color: #007bff;
    color: #fff;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

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

.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: #fff;
    opacity: 0.7;
}

.swiper-pagination-bullet-active {
    background: #007bff;
    opacity: 1;
}

h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: #007bff;
}

.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-color: #fff;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.service-icon {
    font-size: 3.5rem;
    color: #007bff;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 2;
}

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

.service-item h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    position: relative;
    z-index: 2;
}

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

.service-decoration {
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background-color: rgba(0, 123, 255, 0.1);
    border-radius: 50%;
    z-index: 1;
    transition: transform 0.3s ease;
}

.service-item:hover .service-decoration {
    transform: scale(1.2);
}

.service-item::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0,123,255,0.1) 0%, rgba(255,255,255,0) 70%);
    transition: transform 0.3s ease;
    transform: scale(0);
    z-index: 1;
}

.service-item:hover::before {
    transform: scale(1);
}

.service-link {
    display: inline-block;
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.service-link:hover {
    color: #0056b3;
}

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

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

footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 1rem;
}

@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-color: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.member-image {
    height: 250px;
}

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

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

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

.member-info h3 {
    margin: 0.5rem 0;
    color: #007bff;
    font-size: 1.8rem;
}

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

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

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

.social-icon {
    color: #007bff;
    font-size: 1.5rem;
    transition: transform 0.3s ease, color 0.3s ease;
}

.social-icon:hover {
    transform: scale(1.2);
    color: #0056b3;
}

.member-number {
    position: absolute;
    bottom: 10px;
    right: 15px;
    font-size: 5rem;
    font-weight: bold;
    color: rgba(0, 123, 255, 0.1);
    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-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    position: relative;
}

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

.portfolio-info {
    padding: 1.5rem;
}

.portfolio-info h3 {
    margin-bottom: 0.5rem;
    color: #007bff;
    font-size: 1.2rem;
}

.portfolio-info p {
    margin-bottom: 1rem;
    color: #666;
    font-size: 0.9rem;
}

.portfolio-info .btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    font-size: 0.9rem;
}

.portfolio-info .btn:hover {
    background-color: #0056b3;
}


@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.75rem 2rem;
    font-size: 1.1rem;
    border-radius: 30px;
    text-transform: uppercase;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-primary.custom-btn {
    background-color: #007bff;
    border-color: #007bff;
    color: #fff;
}

.btn-primary.custom-btn:hover {
    background-color: #0056b3;
    border-color: #0056b3;
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.btn-secondary.custom-btn {
    background-color: #6c757d;
    border-color: #6c757d;
    color: #fff;
}

.btn-secondary.custom-btn:hover {
    background-color: #545b62;
    border-color: #545b62;
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

@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;
}