/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fff;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* 头部样式 */
header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #2c3e50;
    padding: 5px;
}

.logo img {
    height: 40px;
    width: auto;
}

.mobile-nav {
    display: flex;
}

.mobile-nav > ul {
    display: flex;
    gap: 30px;
}

.mobile-nav li {
    position: relative;
}

.mobile-nav > ul > li > a {
    font-size: 16px;
    font-weight: 500;
    color: #2c3e50;
    padding: 10px 0;
    position: relative;
    transition: color 0.3s;
}

.mobile-nav > ul > li > a:hover {
    color: #0066cc;
}

.mobile-nav > ul > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #0066cc;
    transition: width 0.3s;
}

.mobile-nav > ul > li > a:hover::after {
    width: 100%;
}

/* 下拉菜单 */
.mobile-nav > ul > li > ul {
    position: absolute;
    top: 100%;
    left: -20px;
    background: #fff;
    min-width: 200px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s;
    padding: 10px 0;
    z-index: 100;
}

.mobile-nav > ul > li:hover > ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mobile-nav ul ul li {
    padding: 0;
}

.mobile-nav ul ul a {
    display: block;
    padding: 8px 20px;
    font-size: 14px;
    color: #555;
    transition: all 0.3s;
}

.mobile-nav ul ul a:hover {
    background: #f5f5f5;
    color: #0066cc;
}

/* 三级菜单 */
.mobile-nav ul ul ul {
    position: absolute;
    left: 100%;
    top: 0;
    background: #fff;
    min-width: 180px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 移动端样式 */
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }
    
    .mobile-nav {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: #fff;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }
    
    .mobile-nav.open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    .mobile-nav > ul {
        flex-direction: column;
        gap: 0;
    }
    
    .mobile-nav > ul > li {
        border-bottom: 1px solid #eee;
    }
    
    .mobile-nav > ul > li > a {
        display: block;
        padding: 15px 20px;
        font-size: 16px;
    }
    
    /* 移动端下拉菜单 */
    .mobile-nav > ul > li > ul {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: #f9f9f9;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s;
        padding: 0;
    }
    
    .mobile-nav > ul > li:hover > ul {
        max-height: 300px;
    }
    
    .mobile-nav ul ul a {
        padding-left: 40px;
        padding-top: 12px;
        padding-bottom: 12px;
        font-size: 14px;
    }
    
    /* 移动端三级菜单 */
    .mobile-nav ul ul ul {
        position: static;
        box-shadow: none;
        background: #f0f0f0;
    }
    
    .mobile-nav ul ul ul a {
        padding-left: 60px;
    }
}

/* 尾部样式 */
footer {
    background: #2c3e50;
    color: #fff;
    margin-top: 50px;
}

.ft-top {
    padding: 40px 20px;
}

.ft-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 40px;
    align-items: center;
}

.links .title {
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 500;
}

.links-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.links-list a {
    color: #ddd;
    transition: color 0.3s;
    font-size: 14px;
}

.links-list a:hover {
    color: #0066cc;
}

.links-list a:not(:last-child)::after {
    content: "|";
    margin-left: 15px;
    color: #666;
}

.qrcode img {
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.contact-info {
    text-align: right;
}

.contact-info p {
    margin-bottom: 8px;
    font-size: 14px;
    color: #ddd;
}

.ft-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 20px;
    text-align: center;
}

.ft-bottom p {
    font-size: 14px;
    color: #aaa;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .ft-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
    
    .links-list {
        justify-content: center;
    }
    
    .contact-info {
        text-align: center;
    }
    
    .links-list a:not(:last-child)::after {
        content: "";
        margin: 0;
    }
}

/* 关于我们页面特有样式 */
.content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.banner {
    margin-bottom: 40px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.banner img {
    width: 100%;
    height: auto;
    display: block;
}

/* 历史沿革部分 */
.c7 {
    background: #f9f9f9;
    border-radius: 12px;
    padding: 40px 30px;
    margin-bottom: 40px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.c7-title {
    text-align: center;
    margin-bottom: 40px;
}

.c7-title h1 {
    font-size: 32px;
    color: #2c3e50;
    margin-bottom: 8px;
}

.c7-title p {
    font-size: 16px;
    color: #666;
    font-style: italic;
}

.c7-center {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
}

.c7-1, .c7-2, .c7-3, .c7-4, .c7-5 {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #eee;
}

.c7-1:hover, .c7-2:hover, .c7-3:hover, .c7-4:hover, .c7-5:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.c7-center img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

/* 历史时间线部分 */
.c6 {
    margin: 40px 0;
    text-align: center;
}

.c6 img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

hr {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, #ddd, transparent);
    margin: 40px 0;
}

.c8 {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 50px;
    position: relative;
    overflow: hidden;
}

.c8::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #0066cc, #004488);
}

.c8 ul {
    position: relative;
    padding-left: 40px;
}

.c8 li {
    position: relative;
    margin-bottom: 25px;
    padding-left: 20px;
    font-size: 16px;
    line-height: 1.7;
    color: #333;
}

.c8 li::before {
    content: '';
    position: absolute;
    left: -40px;
    top: 10px;
    width: 12px;
    height: 12px;
    background: #fff;
    border: 3px solid #0066cc;
    border-radius: 50%;
    z-index: 2;
}

.c8 li span {
    font-weight: bold;
    color: #0066cc;
    margin-right: 10px;
    font-size: 18px;
}

/* 联系我们部分 */
.c9 {
    background: #fff;
    border-radius: 12px;
    padding: 40px 30px;
    border: 1px solid #eee;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
}

.c9-title {
    text-align: center;
    margin-bottom: 40px;
}

.c9-title h1 {
    font-size: 32px;
    color: #2c3e50;
    margin-bottom: 8px;
}

.c9-title p {
    font-size: 16px;
    color: #666;
    font-style: italic;
}

.c9-center {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.c9-left {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    border-left: 4px solid #0066cc;
}

.c9-left-item img {
    width: 119px;
    height: 119px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.c9-left-text {
    flex: 1;
}

.c9-left-text p {
    margin-bottom: 12px;
    font-size: 15px;
    color: #444;
}

.c9-left-text p:first-child {
    font-size: 16px;
    font-weight: 500;
    color: #2c3e50;
}

.c9-right {
    background: linear-gradient(135deg, #0066cc, #004488);
    color: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
}

.c9-right h1 {
    font-size: 22px;
    margin-bottom: 20px;
    font-weight: 500;
}

.c9-right a {
    display: inline-block;
    background: white;
    color: #0066cc;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.c9-right a:hover {
    background: #f0f7ff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .content {
        padding: 15px;
    }
    
    .c7, .c8, .c9 {
        padding: 25px 20px;
    }
    
    .c7-center {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .c8 ul {
        padding-left: 20px;
    }
    
    .c8 li::before {
        left: -30px;
    }
    
    .c9-center {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .c9-left {
        flex-direction: column;
        align-items: center;
        text-align: center;
        border-left: none;
        border-top: 4px solid #0066cc;
    }
    
    .c7-title h1, .c9-title h1 {
        font-size: 28px;
    }
    
    .c8 {
        padding: 25px;
    }
}

@media (max-width: 480px) {
    .c7-center img {
        height: 150px;
    }
    
    .c8 li {
        font-size: 14px;
        padding-left: 15px;
    }
    
    .c8 li span {
        font-size: 16px;
    }
    
    .c9-right h1 {
        font-size: 20px;
    }
    
    .c9-right a {
        padding: 10px 25px;
        font-size: 15px;
    }
}