/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    margin: 0 !important;
    padding: 0 !important;
}

:root {
    --brand-red: #d60000;
    --text-primary: #222222;
    --text-secondary: #666666;
    --bg-primary: #ffffff;
    --bg-secondary: #f7f7f7;
    --border-color: #eaeaea;
    --transition: all 0.3s ease-in-out;
    --white: #ffffff;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', 'Hiragino Sans GB', sans-serif;
    line-height: 1.7;
    color: #b3b3b3;
    background-color: var(--bg-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: transparent;
    box-shadow: none;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: background-color 0.3s ease, padding 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: center; gap: 6rem;
    align-items: center;
}

.logo {
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #b3b3b3;
}

.logo img {
    height: 38px;
    width: auto;
    display: block;
}

 .nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 6rem;
}

.nav-menu a {
    text-decoration: none;
    color: #e9e9e9;
    font-weight: 600;
    font-family: '行楷-繁', '演示夏行楷', 'Slidexiaxing', 'STKaiTi', 'KaiTi', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    letter-spacing: 1.6px;
    transition: var(--transition);
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -8.5px;
    left: 50%;
    width: 0;
    height: 0;
    border: 1px solid transparent;
    border-radius: 50px;
    transform: translateX(-50%);
    transition: var(--transition);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: calc(100% + 20px);
    height: calc(100% + 10px);
    border-color: #d60000;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    transition: var(--transition);
}

/* Hero区域 - 使用自定义背景图 */
.hero {
    margin-top: 0;
    padding: 0;
    padding-top: 0;
    position: relative;
    color: #fff;
}

/* 确保轮播图从页面顶部开始 */
section#home {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.hero-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.hero-slider .swiper {
    width: 100%;
    height: 100%;
}

.hero-slider .swiper-slide {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.hero-slider .swiper-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(0,0,0,0.7), rgba(0,0,0,0.25));
}

.hero-slider .swiper-button-prev,
.hero-slider .swiper-button-next {
    color: #fff;
}

.hero-slider .swiper-pagination-bullet {
    background: rgba(255,255,255,0.7);
}

.hero-slider .swiper-pagination-bullet-active {
    background: var(--brand-red);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    padding: 5rem 8% 3rem;
    display: flex;
    flex-direction: column;
    gap: 5rem;
    align-items: center;
    justify-content: center;
    justify-content: center;
    pointer-events: none;
}

.hero-content,
.hero-stats {
    position: relative;
    z-index: 2;
    pointer-events: auto;
}

.hero-content {
    max-width: 720px;
    text-align: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    animation: fadeInUp 1s ease 0.2s backwards;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    animation: fadeInUp 1s ease 0.4s backwards;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--brand-red);
    color: var(--white);
    border-color: #d60000;
}

.btn-primary:hover {
    transform: translateY(-2px);
    background: #a00000;
    border-color: #a00000;
}

.btn-secondary {
    background: transparent;
    color: var(--brand-red);
    border-color: #d60000;
}

.btn-secondary:hover {
    background: var(--brand-red);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-outline:hover {
    background: var(--secondary-color);
    color: var(--white);
}

.btn-block {
    width: 100%;
}

.hero-stats {
    display: flex;
    gap: 5rem;
    animation: fadeInUp 1s ease 0.6s backwards;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: #d60000;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.95;
}

/* 通用区块样式 */
section {
    padding: 8rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

/* 服务优势 */
.advantages {
    background: var(--bg-secondary);
}

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

.advantage-card {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.advantage-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.07);
    border-color: transparent;
}

.advantage-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--brand-red);
}

.advantage-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.advantage-card p {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* 作品集 */
.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    color: var(--brand-red);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.portfolio-item {
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
}

.portfolio-item.hidden {
    display: none;
}

.portfolio-image {
    position: relative;
    overflow: hidden;
    padding-top: 75%;
    background: var(--bg-light);
}

.portfolio-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition);
    padding: 2rem;
    text-align: center;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

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

.portfolio-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.portfolio-overlay p {
    margin-bottom: 1rem;
    opacity: 0.9;
}

.view-detail {
    font-weight: 600;
}

.portfolio-gallery {
    display: none;
}

.portfolio-modal,
.portfolio-lightbox {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.portfolio-modal.active,
.portfolio-lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.portfolio-modal-panel {
    position: relative;
    width: min(1100px, 92vw);
    max-height: 90vh;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 18px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.portfolio-modal-header h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.portfolio-modal-header p {
    color: var(--text-secondary);
}

.portfolio-modal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 1rem;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}

.portfolio-thumb {
    background: transparent;
    border: none;
    padding: 0;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    text-align: center;
    box-shadow: none;
    transition: transform 0.3s ease;
}

.portfolio-thumb:hover {
    transform: translateY(-6px) scale(1.03);
}

.portfolio-thumb img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 6px;
}

.portfolio-thumb span {
    display: inline-block;
    font-weight: 600;
    color: var(--text-primary);
}

.portfolio-modal-close,
.lightbox-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.08);
    font-size: 1.5rem;
    cursor: pointer;
}

.portfolio-lightbox-content {
    position: relative;
    max-width: min(1200px, 94vw);
    width: 100%;
    text-align: center;
}

.portfolio-lightbox-content img {
    width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 7px;
    background: #000;
    transition: opacity 0.3s ease;
}

.portfolio-lightbox-content p {
    margin-top: 1rem;
    color: rgba(255,255,255,0.7);
    font-size: 1.1rem;
}

body.modal-open {
    overflow: hidden;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: rgba(255,255,255,0.7);
    font-size: 2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 400;
    transition: color 0.2s ease;
}

.lightbox-prev {
    left: 10px;
}

.lightbox-next {
    right: 10px;
}

.lightbox-nav:hover {
    color: #ffffff;
}

.lightbox-nav:active {
    color: #333333;
}

/* 合作品牌 */
.clients {
    background: var(--bg-secondary);
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.client-logo {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.client-logo:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.07);
    border-color: transparent;
}

.logo-placeholder {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-secondary);
}

/* 关于我们 */
.about {
    background: var(--bg-secondary);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-top: 3rem;
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1.1rem;
}

.about-highlights {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.highlight-item {
    text-align: center;
    margin: 0 1rem;
}

.highlight-item strong {
    display: block;
    font-size: 2rem;
    color: var(--brand-red);
    margin-bottom: 0.5rem;
}

.highlight-item span {
    color: var(--text-secondary);
}

.about-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-placeholder {
    width: 100%;
    height: 100%;
    min-height: 400px;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.placeholder-icon {
    font-size: 5rem;
    opacity: 0.3;
}

.team-placeholder p {
    color: #999;
    font-size: 1.2rem;
    font-weight: 500;
}

/* 联系我们 */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    margin-top: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.contact-icon {
    font-size: 1.8rem;
    color: var(--white);
    width: 60px;
    height: 60px;
    background: var(--brand-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-item h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.contact-item p {
    color: var(--text-secondary);
}

.contact-form {
    background: var(--bg-secondary);
    padding: 2.5rem;
    border-radius: 10px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    background-color: var(--bg-primary);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #d60000;
}

.form-group textarea {
    resize: vertical;
}

/* 页脚 */
.footer {
    background: var(--text-primary);
    color: var(--bg-primary);
    text-align: center;
    padding: 3rem 0;
}

.footer p {
    margin: 0.5rem 0;
    opacity: 0.8;
}

/* 动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar {
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        padding: 1rem 0;
    }

    .navbar .container {
        gap: 2rem;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background: var(--white);
        width: 100%;
        padding: 2rem;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        transition: var(--transition);
        gap: 1.5rem;
        align-items: flex-start;
    }

    .nav-menu a {
        color: #333333 !important;
        font-size: 1.1rem;
        width: 100%;
        padding: 0.5rem 0;
    }

    .nav-menu a::after {
        display: none;
    }

    .nav-menu.active {
        left: 0;
    }

    .menu-toggle {
        display: flex;
    }

    .menu-toggle span {
        background: #333333;
    }

    .hero-slider {
        aspect-ratio: 3 / 4;
        min-height: 70vh;
        max-height: 85vh;
    }

    .hero-slider .swiper-slide {
        background-size: cover;
        background-position: center center;
    }

    .hero-overlay {
        padding: 3rem 8% 2rem;
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 1.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }

    .btn {
        width: 100%;
        padding: 1rem 2rem;
        font-size: 1rem;
        text-align: center;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
        margin-top: 2rem;
    }

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

    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.9rem;
    }

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

    .about-content {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 480px) {
    .navbar .container {
        padding: 0 15px;
    }

    .logo img {
        height: 32px;
    }

    .hero-title {
        font-size: 1.75rem;
        line-height: 1.3;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .section-title {
        font-size: 1.75rem;
        line-height: 1.3;
    }

    .section-subtitle {
        font-size: 0.95rem;
    }

    .advantage-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .advantage-card h3 {
        font-size: 1.2rem;
    }

    .advantage-card p {
        font-size: 0.9rem;
    }

    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .hero-overlay {
        padding: 2rem 5% 1.5rem;
    }

    .stat-number {
        font-size: 1.75rem;
    }

    .stat-label {
        font-size: 0.85rem;
    }

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

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


/* 世界面流粿 */

.navbar.scrolled .nav-menu a {
    color: #333333;
}

.navbar.scrolled .logo {
    color: #333333;
}
