/* 全局样式 */
:root {
    --primary-color: #c62828;
    --secondary-color: #2c3e50;
    --accent-color: #e53935;
    --text-color: #333;
    --light-text: #666;
    --background-color: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
    color: #333;
    line-height: 1.6;
}

/* 导航栏样式 - 红色背景 */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--primary-color);
    box-shadow: 0 2px 15px rgba(0,0,0,0.2);
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.menu-button {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    display: none;
    padding: 10px;
    transition: transform 0.3s;
}

.menu-button:hover {
    transform: scale(1.1);
}

.navbar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex: 1;
}

.navbar a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 18px 20px;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 16px;
    position: relative;
    overflow: hidden;
}

.navbar a:before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: white;
    transition: width 0.3s ease;
}

.navbar a:hover:before,
.navbar a[aria-current="page"]:before {
    width: 100%;
}

.navbar a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.navbar a[aria-current="page"] {
    background-color: rgba(255, 255, 255, 0.15);
    font-weight: 600;
}

/* 主要内容区域 */
.aboutus-section {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.aboutus-section h1 {
    text-align: center;
    margin-bottom: 60px;
    font-size: 3rem;
    color: #2c3e50;
    position: relative;
    padding-bottom: 20px;
}

.aboutus-section h1:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(to right, #c62828, #e53935);
    border-radius: 2px;
}

.aboutus-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 30px;
    margin-bottom: 80px;
}

.aboutus-item {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.aboutus-item:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
}

.aboutus-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.item-a {
    grid-column: 1;
    grid-row: 1;
}

.item-b {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.item-c {
    grid-column: 1;
    grid-row: 2;
}

.item-d {
    grid-column: 2;
    grid-row: 2;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

.aboutus-item h2 {
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-size: 1.8rem;
    position: relative;
    padding-bottom: 10px;
}

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

.aboutus-item h3 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.subtitle {
    line-height: 1.8;
    color: var(--light-text);
}

/* 成就区域样式 */
.achievements-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px;
    text-align: center;
}

.achievements-section h2 {
    color: var(--secondary-color);
    margin-bottom: 60px;
    font-size: 2.5rem;
    position: relative;
    padding-bottom: 20px;
}

.achievements-section h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.photo-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.4s ease;
    cursor: pointer;
}

.photo-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.photo-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
}

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close:hover {
    color: #ccc;
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 24px;
    transition: 0.3s;
    user-select: none;
    background-color: rgba(0,0,0,0.5);
    border-radius: 0 5px 5px 0;
}

.next {
    right: 0;
    border-radius: 5px 0 0 5px;
}

.prev:hover, .next:hover {
    background-color: rgba(0,0,0,0.8);
}

/* 页脚样式 */
.footer {
    background: var(--secondary-color);
    color: white;
    padding: 60px 20px 30px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.box {
    padding: 0 20px;
}

.box h2 {
    margin-bottom: 25px;
    font-size: 1.8rem;
    color: white;
    position: relative;
    padding-bottom: 15px;
}

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

.box iframe {
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.spaced-lines {
    margin-bottom: 15px;
    display: block;
}

.underline-link {
    color: #ecf0f1;
    text-decoration: none;
    position: relative;
    transition: color 0.3s;
    font-size: 1.1rem;
}

.underline-link:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s;
}

.underline-link:hover, .underline-link.active {
    color: white;
}

.underline-link:hover:after, .underline-link.active:after {
    width: 100%;
}

.social-icons {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    text-align: center;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: var(--primary-color);
    transform: translateY(-5px);
}

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

.copyright {
    text-align: center;
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* 新增图标样式 */
.contact-icons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.contact-icon {
    width: 35px;
    height: 35px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-item:hover .contact-icon {
    background-color: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.service-list {
    list-style: none;
    padding: 0;
    margin-top: 15px;
}

.service-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: var(--light-text);
}

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

.achievement-list {
    list-style: none;
    padding: 0;
    margin-top: 15px;
}

.achievement-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: var(--light-text);
}

.achievement-list i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.feature-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    color: rgba(198, 40, 40, 0.1);
    transition: all 0.3s ease;
}

.aboutus-item:hover .feature-icon {
    color: rgba(198, 40, 40, 0.3);
    transform: scale(1.2);
}

/* 响应式设计 */
@media (max-width: 992px) {
    .aboutus-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto auto;
    }
    
    .item-a {
        grid-column: 1;
        grid-row: 1;
    }
    
    .item-b {
        grid-column: 1;
        grid-row: 2;
    }
    
    .item-c {
        grid-column: 1;
        grid-row: 3;
    }
    
    .item-d {
        grid-column: 1;
        grid-row: 4;
    }
}

@media (max-width: 768px) {
    .header {
        flex-direction: column;
        padding: 10px;
    }
    
    .menu-button {
        display: block;
        align-self: flex-start;
        margin-bottom: 10px;
    }
    
    .navbar {
        display: none;
        flex-direction: column;
        width: 100%;
        gap: 0;
    }
    
    .navbar.show {
        display: flex;
    }
    
    .navbar a {
        width: 100%;
        text-align: center;
        padding: 15px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .aboutus-section, .achievements-section {
        padding: 50px 15px;
    }
    
    .aboutus-section h1, .achievements-section h2 {
        font-size: 2rem;
        margin-bottom: 40px;
    }
    
    .photo-gallery {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .box {
        padding: 0 10px;
    }
    
    .contact-icons {
        align-items: center;
    }
}

@media (max-width: 480px) {
    .aboutus-section, .achievements-section {
        padding: 40px 10px;
    }
    
    .aboutus-item {
        padding: 30px 20px;
    }
    
    .aboutus-item h2 {
        font-size: 1.5rem;
    }
    
    .aboutus-item h3 {
        font-size: 1.1rem;
    }
    
    .photo-card img {
        height: 200px;
    }
}