:root {
    --primary-color: #b31b1b;
    --primary-dark: #8a1515;
    --secondary-color: #1a1a1a;
    --light-color: #f8f8f8;
    --dark-color: #222;
    --gray-color: #6c757d;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Noto Sans SC', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 0.5rem;
}

h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

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

section {
    padding: 80px 0;
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

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

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--secondary-color);
    cursor: pointer;
    padding: 10px;
    transition: var(--transition);
    z-index: 1002;
}

.mobile-menu-btn:hover {
    color: var(--primary-color);
}

nav {
    display: block;
}

.logo a {
    text-decoration: none;
}

.logo h1 {
    font-size: 1.8rem;
    margin-bottom: 0;
    color: var(--secondary-color);
}

.logo span {
    color: var(--primary-color);
}

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

nav ul li {
    margin-left: 30px;
}

nav ul li:first-child {
    margin-left: 0;
}

nav ul li a {
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

nav ul li a:hover {
    color: var(--primary-color);
}

nav ul li a.active {
    color: var(--primary-color);
}

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

nav ul li a:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

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

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--secondary-color);
    cursor: pointer;
    padding: 10px;
    transition: var(--transition);
}

.mobile-menu-btn:hover {
    color: var(--primary-color);
}

/* Page Header */
.page-header {
    height: 50vh;
    min-height: 400px;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), #333;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: white;
    text-align: center;
    margin-top: 70px;
}

.page-header h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.3rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
}

/* Common Components */
.media-placeholder {
    width: 100%;
    height: 400px;
    background-color: #e0e0e0;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-color);
    font-size: 1.2rem;
    overflow: hidden;
}

.media-placeholder i {
    font-size: 4rem;
    margin-bottom: 15px;
}

.placeholder-content {
    text-align: center;
}

/* Services Page Specific */
.service-detail {
    margin-bottom: 60px;
}

.service-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
}

.service-category {
    background-color: var(--light-color);
    border-radius: 10px;
    padding: 40px;
    margin-bottom: 30px;
}

.service-list {
    list-style: none;
    margin-top: 20px;
}

.service-list li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
}

.service-list li:before {
    content: '✓';
    color: var(--primary-color);
    font-weight: bold;
    margin-right: 10px;
}

/* Services Detail - Dynamic Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 20px;
}

@media (max-width: 900px) {
    .services-grid { grid-template-columns: 1fr; }
}

.service-card-detail {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.service-card-detail:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 32px rgba(0,0,0,0.13);
}

.service-card-cover {
    height: 200px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.service-card-cover--icon {
    background: linear-gradient(135deg, #b31b1b 0%, #8a1515 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-card-cover--icon i {
    font-size: 3.5rem;
    color: rgba(255,255,255,0.85);
}

.service-card-body {
    padding: 28px 30px 30px;
    flex: 1;
}

.service-card-num {
    font-size: 0.8rem;
    color: var(--primary-color);
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.service-card-title {
    font-size: 1.3rem;
    color: var(--dark-color);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-card-title i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.service-card-subtitle {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 12px;
    line-height: 1.5;
}

.service-card-desc {
    font-size: 0.93rem;
    color: var(--gray-color);
    line-height: 1.75;
    margin: 0;
}

.service-process {
    background-color: var(--light-color);
    padding: 60px 0;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
    margin-top: 40px;
}

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

@media (max-width: 768px) {
    .process-steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .process-steps {
        grid-template-columns: 1fr;
    }
}

.process-step {
    text-align: center;
    padding: 30px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.step-number {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 20px;
}

/* Portfolio Page Specific */
.portfolio-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 8px 20px;
    background-color: transparent;
    border: 2px solid #ddd;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn.active,
.filter-btn:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

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

.portfolio-item {
    border-radius: 10px;
    overflow: hidden;
    background-color: #f5f5f5;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.portfolio-img {
    height: 250px;
    background-color: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-color);
}

.portfolio-info {
    padding: 25px;
}

.portfolio-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 10px;
}

.portfolio-tags span {
    background-color: #f0f0f0;
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 0.9rem;
}

/* Clients Page Specific */
.clients-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
}

.client-category {
    margin-bottom: 60px;
}

.client-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.client-card {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.client-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.client-logo {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--gray-color);
    overflow: hidden;
}

.client-logo img {
    max-width: 100%;
    max-height: 90px;
    object-fit: contain;
    transition: transform 0.3s;
}

.client-card:hover .client-logo img {
    transform: scale(1.05);
}

.client-info h4 {
    margin-bottom: 10px;
}

.testimonials {
    background-color: var(--light-color);
    padding: 80px 0;
}

.testimonial-slider {
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-item {
    text-align: center;
    padding: 40px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.testimonial-text {
    font-style: italic;
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.testimonial-author {
    font-weight: bold;
    color: var(--primary-color);
}

/* Contact Page Specific */
.contact-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.contact-info {
    padding: 30px;
    background-color: var(--light-color);
    border-radius: 10px;
}

.contact-info h3 {
    color: var(--primary-color);
    margin-bottom: 30px;
}

.contact-details {
    list-style: none;
    margin-top: 30px;
}

.contact-details li {
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
}

.contact-details i {
    color: var(--primary-color);
    margin-right: 15px;
    font-size: 1.2rem;
    margin-top: 5px;
}

.contact-form {
    padding: 30px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Noto Sans SC', sans-serif;
    font-size: 1rem;
}

/* 自定义 select 外观 */
.custom-select-wrapper {
    position: relative;
}

.custom-select-wrapper select {
    appearance: none;
    -webkit-appearance: none;
    background-color: #fff;
    cursor: pointer;
    padding-right: 40px;
    color: #333;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.custom-select-wrapper select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb, 180,140,60), 0.15);
}

.custom-select-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #999;
    font-size: 0.8rem;
}

/* 表单提示 */
.alert {
    padding: 14px 18px;
    margin-bottom: 20px;
    border-radius: 5px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* 验证码行 */
.captcha-row {
    display: flex;
    gap: 12px;
    align-items: center;
}

.captcha-row input {
    width: 130px;
    flex: none;
    font-size: 1.1rem;
}

/* 数学验证码题目 */
.captcha-math {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f4f4f4;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px 16px;
    font-size: 1.15rem;
    font-weight: 600;
    color: #333;
    letter-spacing: 2px;
    user-select: none;
    white-space: nowrap;
}

.captcha-refresh {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #e0e0e0;
    cursor: pointer;
    font-size: 0.75rem;
    color: #666;
    transition: background 0.2s, color 0.2s;
    margin-left: 4px;
}

.captcha-refresh:hover {
    background: var(--primary-color);
    color: #fff;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.map-container {
    height: 300px;
    background-color: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-color);
}

/* About Page Specific Styles */
.company-intro {
    padding: 100px 0;
}

.intro-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.intro-text {
    padding-right: 30px;
}

.intro-text h2 {
    color: var(--primary-color);
}

.intro-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background-color: var(--light-color);
    border-radius: 10px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1rem;
    color: var(--gray-color);
}

.intro-media {
    position: relative;
}

.intro-media .media-placeholder {
    height: 500px;
}

/* Vision & Mission */
.vision-mission {
    background-color: var(--light-color);
    padding: 100px 0;
}

.vm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.vm-card {
    background-color: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: var(--transition);
}

.vm-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.vm-icon {
    width: 80px;
    height: 80px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 25px;
}

/* Team Section */
.team-section {
    padding: 100px 0;
}

.team-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.team-member {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.member-img {
    height: 300px;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-color);
}

.member-info {
    padding: 25px;
    text-align: center;
}

.member-info h4 {
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.member-title {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 15px;
}

/* sort_order=0 的成员：独占一行居中，卡片宽度与其他人完全一致 */
.team-member--solo {
    grid-column: 1 / -1;
    justify-self: center;
    /* 与 minmax(280px,1fr) 三列时等宽：(容器 - 2×gap) / 3 */
    width: calc((100% - 60px) / 3);
    min-width: 280px;
}

@media (max-width: 900px) {
    .team-member--solo {
        width: calc((100% - 30px) / 2);
    }
}

@media (max-width: 600px) {
    .team-member--solo {
        width: 100%;
        justify-self: stretch;
    }
}

/* Development Timeline */
.timeline-section {
    background-color: var(--light-color);
    padding: 100px 0;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline:before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--primary-color);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
}

.timeline-item:nth-child(odd) {
    padding-right: 50%;
    text-align: right;
    padding-left: 0;
}

.timeline-item:nth-child(even) {
    padding-left: 50%;
    text-align: left;
}

.timeline-dot {
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--primary-color);
    border-radius: 50%;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.timeline-content {
    background-color: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.timeline-year {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

/* Contact CTA */
.contact-cta {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    text-align: center;
    padding: 100px 0;
}

.contact-cta h2 {
    color: white;
}

.contact-cta h2:after {
    background-color: white;
    left: 50%;
    transform: translateX(-50%);
}

.contact-cta p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 40px;
    opacity: 0.9;
}

/* Portfolio Detail Page Styles */
.project-hero {
    padding: 150px 0 80px;
    background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
    color: white;
    margin-top: 70px;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
}

.project-title {
    flex: 1;
}

.project-meta {
    display: flex;
    flex-direction: column;
    gap: 15px;
    min-width: 250px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.meta-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
    width: 24px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.tag {
    background-color: rgba(179, 27, 27, 0.2);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.video-player {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto 60px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.video-container {
    width: 100%;
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    background-color: #000;
}

.video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    background: linear-gradient(135deg, #333 0%, #666 100%);
}

.video-placeholder i {
    font-size: 5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.play-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 30px;
    font-size: 1.1rem;
    cursor: pointer;
    margin-top: 20px;
    transition: var(--transition);
}

.play-btn:hover {
    background-color: var(--primary-dark);
    transform: scale(1.05);
}

.project-content {
    padding: 80px 0;
}

.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
}

.project-description {
    line-height: 1.8;
}

.description-section {
    margin-bottom: 40px;
}

.project-details {
    background-color: var(--light-color);
    padding: 30px;
    border-radius: 10px;
    height: fit-content;
}

.detail-list {
    list-style: none;
}

.detail-list li {
    padding: 15px 0;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
}

.detail-list li:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 500;
    color: var(--secondary-color);
}

.detail-value {
    color: var(--primary-color);
    font-weight: 500;
}

.gallery-section {
    background-color: var(--light-color);
    padding: 80px 0;
}

.gallery-title {
    text-align: center;
    margin-bottom: 40px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    border-radius: 10px;
    overflow: hidden;
    height: 250px;
    background-color: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-color);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.gallery-item:hover::after {
    content: '\f00e';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.35);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2rem;
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,.65));
    color: #fff;
    font-size: 0.82rem;
    padding: 20px 12px 10px;
    pointer-events: none;
}

.related-projects {
    padding: 80px 0;
}

.related-title {
    text-align: center;
    margin-bottom: 40px;
}

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

.related-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
    display: block;
}

.related-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.related-img {
    height: 200px;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-color);
}

.related-info {
    padding: 25px;
}

.related-info h4 {
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.project-navigation {
    padding: 40px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.nav-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 25px;
    text-decoration: none;
    color: var(--secondary-color);
    border-radius: 30px;
    transition: var(--transition);
}

.nav-btn:hover {
    background-color: var(--light-color);
}

.nav-btn.prev i {
    order: -1;
}

.lightbox-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
}

.lightbox-img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 5px;
}

.close-lightbox {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}

/* Footer */
footer {
    background-color: var(--secondary-color);
    color: #aaa;
    padding: 40px 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-logo h3 {
    color: white;
    margin-bottom: 15px;
}

.footer-links h4,
.footer-contact h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #aaa;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
}

.footer-contact p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.footer-contact i {
    margin-right: 10px;
    color: var(--primary-color);
}

.copyright {
    text-align: center;
    padding-top: 40px;
    margin-top: 40px;
    border-top: 1px solid #444;
    font-size: 0.9rem;
}

.beian-info {
    margin-top: 6px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.beian-info a {
    color: inherit;
    text-decoration: none;
}

.beian-info a:hover {
    color: #fff;
}

.beian-info span {
    color: #555;
}

/* Responsive Styles */
@media (max-width: 992px) {
    h1 {
        font-size: 2.8rem;
    }
    
    h2 {
        font-size: 2.2rem;
    }
    
    .page-header h1 {
        font-size: 2.8rem;
    }
    
    .intro-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .intro-text {
        padding-right: 0;
    }
    
    .timeline:before {
        left: 30px;
    }
    
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        padding-left: 60px;
        padding-right: 0;
        text-align: left;
    }
    
    .timeline-dot {
        left: 30px;
    }
    
    .project-header {
        flex-direction: column;
        gap: 30px;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .related-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
    }
    
    .header-container {
        position: relative;
    }
    
    .logo {
        margin: 0 auto;
    }
    
    nav {
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
    }
    
    nav ul {
        flex-direction: column;
        align-items: center;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease, padding 0.4s ease;
        padding: 0;
        background-color: white;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }
    
    nav ul.active {
        max-height: 500px;
        padding: 20px 0;
    }
    
    nav ul li {
        margin: 10px 0;
    }
    
    nav ul li:first-child {
        margin-left: 0;
    }
    
    footer {
        display: none;
    }
    
    .page-header {
        height: 40vh;
        min-height: 300px;
    }
    
    .page-header h1 {
        font-size: 2.5rem;
    }
    
    .page-header p {
        font-size: 1.1rem;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .client-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .intro-stats {
        grid-template-columns: 1fr;
    }
    
    .project-hero {
        padding: 120px 0 60px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-buttons {
        flex-direction: column;
        gap: 20px;
        align-items: stretch;
    }
    
    .nav-btn {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    section {
        padding: 60px 0;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .page-header p {
        font-size: 1rem;
    }
    
    .service-category,
    .contact-form,
    .contact-info {
        padding: 20px;
    }
    
    .client-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .vm-card,
    .team-member,
    .timeline-content {
        padding: 20px;
    }
    
    .project-hero {
        padding: 100px 0 40px;
    }
    
    .project-details {
        padding: 20px;
    }
    
    .video-placeholder i {
        font-size: 3rem;
    }
}