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

:root {
    --primary-color: #1e88e5;
    --primary-dark: #1565c0;
    --secondary-color: #42a5f5;
    --text-dark: #333;
    --text-light: #666;
    --bg-light: #f5f5f5;
    --white: #ffffff;
    --border-color: #e0e0e0;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* 导航栏 */
.header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    overflow: hidden;
}

.logo::before {
    display: none;
}

.logo-img,
.footer-logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: none;
    outline: none;
    box-shadow: none;
}

.logo-text h1 {
    font-size: 24px;
    color: var(--text-dark);
    margin-bottom: 2px;
}

.logo-text .tagline {
    font-size: 12px;
    color: var(--text-light);
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-size: 16px;
    padding: 5px 0;
    position: relative;
    transition: color 0.3s;
    display: inline-block;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
}

/* 下拉菜单 */
.nav-dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
}

.dropdown-arrow {
    font-size: 8px;
    transition: transform 0.3s;
    margin-left: 3px;
}

.nav-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: #2c2c2c;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    margin-top: 5px;
    display: flex;
    flex-direction: row;
    gap: 0;
    white-space: nowrap;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}


.dropdown-item {
    display: block;
    padding: 6px 20px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s;
    position: relative;
    white-space: nowrap;
}

.dropdown-item:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
}

.dropdown-item.active {
    color: var(--primary-color);
}

.dropdown-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20px;
    right: 20px;
    height: 2px;
    background: var(--primary-color);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    transition: all 0.3s;
}

/* 首页横幅轮播 */
.hero-section {
    position: relative;
    height: 600px;
    overflow: hidden;
    background: #000011;
}

#particleCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
    padding: 0 20px;
}

.hero-title {
    font-size: 64px;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8), 0 0 20px rgba(100, 150, 255, 0.5);
    animation: fadeInUp 1s ease-out, textGlow 3s ease-in-out infinite;
}

.hero-subtitle {
    font-size: 24px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
    animation: fadeInUp 1s ease-out 0.3s both, textGlow 3s ease-in-out infinite 0.5s;
}

@keyframes textGlow {
    0%, 100% {
        opacity: 0.7;
        text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8), 0 0 20px rgba(100, 150, 255, 0.3);
    }
    50% {
        opacity: 1;
        text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8), 0 0 30px rgba(100, 200, 255, 0.8), 0 0 50px rgba(150, 200, 255, 0.4);
    }
}

/* 通用区块样式 */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.section-title {
    font-size: 36px;
    color: var(--primary-color);
    font-weight: bold;
}

.separator {
    color: var(--text-light);
    font-size: 24px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-light);
}

/* 产品服务 */
.services-section {
    background: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.service-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.service-card:hover .service-image img {
    transform: scale(1.1);
}

.service-content {
    padding: 30px;
}

.service-content h3 {
    font-size: 22px;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.service-content p {
    color: var(--text-light);
    line-height: 1.8;
}

/* 项目案例 */
.cases-section {
    background: var(--bg-light);
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.case-item {
    display: flex;
    gap: 30px;
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.case-image {
    flex: 1;
    min-width: 200px;
    height: 200px;
    overflow: hidden;
    border-radius: 10px;
}

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

.case-content {
    flex: 1;
}

.case-content h3 {
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.case-content p {
    color: var(--text-light);
    line-height: 1.8;
}

/* 企业合作 */
.cooperation-section {
    background: var(--white);
    position: relative;
    padding: 100px 0;
}

.cooperation-logos {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 30px;
    align-items: center;
    justify-items: center;
}

.cooperation-logo-item {
    background: #ffffff;
    border-radius: 16px;
    padding: 16px 24px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cooperation-logo-item img {
    max-width: 100%;
    max-height: 60px;
    object-fit: contain;
    display: block;
}

/* 关于庆洲 */
.about-section {
    background: var(--bg-light);
    padding: 80px 0;
}

.about-subsection {
    margin-bottom: 60px;
}

.about-subsection:last-child {
    margin-bottom: 0;
}

.subsection-title {
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
}

.company-intro {
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    line-height: 1.8;
}

.company-intro p {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 16px;
}

.company-intro p:last-child {
    margin-bottom: 0;
}

.team-spirit {
    display: flex;
    justify-content: center;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

/* 企业文化整图样式 */
.culture-full-image {
    max-width: 1000px;
    margin: 20px auto 0;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(15, 35, 95, 0.12);
}

.culture-full-image img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.about-stats {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    min-height: 400px;
}

.stats-bg {
    position: absolute;
    width: 100%;
    height: 100%;
}

.stats-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6);
}

.stats-overlay {
    position: relative;
    z-index: 2;
    padding: 40px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
}

.stat-item {
    color: var(--white);
}

.stat-item h3 {
    font-size: 24px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* 团队精神 - 奥运五环样式 */
.team-rings {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 80px 60px 140px;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    background:
        linear-gradient(to right, rgba(255, 255, 255, 0.9), rgba(245, 247, 251, 0.95)),
        url('assets/team-mountain.png') center bottom/cover no-repeat;
}

.ring-row {
    display: flex;
    justify-content: center;
    gap: 70px;
}

.ring-row-bottom {
    margin-top: -40px; /* 形成上下交错效果 */
}

.ring-item {
    position: relative;
}

.ring-circle {
    width: 190px;
    height: 190px;
    border-radius: 50%;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
    border: 12px solid #1976d2;
}

.ring-red .ring-circle {
    border-color: #c62828;
}

.ring-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 4px;
}

.ring-subtitle {
    font-size: 14px;
    color: #777;
}

/* 新闻资讯 */
.news-section {
    background: var(--white);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.news-item {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.news-item:hover {
    transform: translateY(-5px);
}

.news-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.news-content {
    padding: 20px;
}

.news-date {
    color: var(--text-light);
    font-size: 14px;
}

.news-content h3 {
    font-size: 20px;
    color: var(--text-dark);
    margin: 10px 0;
}

.news-content p {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 10px;
}

.news-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.news-link:hover {
    color: var(--primary-dark);
}

/* 联系我们 */
.contact-section {
    background: var(--bg-light);
}

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

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

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

.contact-item h4 {
    font-size: 20px;
    color: var(--text-dark);
    margin-bottom: 5px;
}

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

.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 5px;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.3s;
}

.submit-btn:hover {
    background: var(--primary-dark);
}

/* 页脚 */
.footer {
    background: #1a1a1a;
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-logo .logo-box {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--white);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.footer-logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.footer-logo h3 {
    font-size: 18px;
    color: var(--text-dark);
    margin-bottom: 2px;
}

.footer-logo p {
    font-size: 12px;
    color: var(--text-light);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px;
}

.footer-column h4 {
    font-size: 16px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-column h4::before {
    content: '';
    width: 4px;
    height: 16px;
    background: var(--primary-color);
}

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

.footer-column ul li {
    margin-bottom: 8px;
}

.footer-column ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-column ul li a:hover {
    color: var(--white);
}

.footer-social h4 {
    font-size: 16px;
    margin-bottom: 20px;
}

.qr-code {
    text-align: center;
    margin-bottom: 20px;
}

.qr-placeholder {
    width: 120px;
    height: 120px;
    background: var(--white);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    margin: 0 auto 10px;
    font-size: 12px;
}

.qr-code p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

.social-icons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.social-icon {
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    font-size: 12px;
    transition: background 0.3s;
}

.social-icon:hover {
    background: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.footer-bottom p {
    margin: 5px 0;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cases-grid {
        grid-template-columns: 1fr;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
        transition: left 0.3s;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .nav-dropdown {
        width: 100%;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: var(--bg-light);
        margin-top: 10px;
        margin-left: 20px;
        box-shadow: none;
        flex-direction: column;
    }
    
    .dropdown-item {
        color: var(--text-dark);
        padding: 8px 15px;
    }
    
    .dropdown-item:hover {
        color: var(--primary-color);
        background: transparent;
    }
    
    .dropdown-item.active::after {
        left: 15px;
        right: 15px;
    }
    
    .hero-section {
        height: 400px;
    }
    
    .hero-content {
        padding: 0 30px;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .services-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .case-item {
        flex-direction: column;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .cooperation-diagram {
        min-height: 400px;
    }
    
    .diagram-item {
        width: 150px;
        padding: 15px;
    }
    
    .diagram-item[data-position="top-left"],
    .diagram-item[data-position="top-right"] {
        top: 5%;
    }
    
    .diagram-item[data-position="bottom-left"],
    .diagram-item[data-position="bottom-right"] {
        bottom: 5%;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .company-intro {
        padding: 25px;
    }
    
    .culture-ring {
        height: auto;
        padding: 40px 20px 30px;
    }

    .culture-core {
        position: static;
        transform: none;
        margin: 0 auto 30px;
    }

    .culture-node {
        position: static;
        width: 100%;
        margin-bottom: 20px;
    }

    .culture-node:last-child {
        margin-bottom: 0;
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 28px;
    }
    
    .section-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .separator {
        display: none;
    }
    
    .cooperation-diagram {
        min-height: 300px;
    }
    
    .center-circle {
        width: 150px;
        height: 150px;
    }
    
    .center-circle h3 {
        font-size: 18px;
    }
    
    .diagram-item {
        width: 120px;
        padding: 10px;
        font-size: 12px;
    }
}
