@import url("/global.css");

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #010213, #010c15);
    color: white;
    min-height: 100vh;
    position: relative;
}

/* 星空背景 */
.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.star {
    position: absolute;
    background-color: white;
    border-radius: 50%;
    animation: twinkle var(--duration, 3s) infinite ease-in-out;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 1; }
}

/* 流星效果 */
.shooting-star {
    position: absolute;
    top: 0;
    height: 2px;
    background: linear-gradient(to right, rgba(0,0,0,0), white);
    animation: shooting var(--duration, 2s) linear forwards;
}

@keyframes shooting {
    0% {
        transform: translate(0, 0) rotate(var(--angle, 0deg));
        opacity: 0;
        width: 0;
    }
    10% {
        opacity: 1;
    }
    100% {
        transform: translate(var(--endX, 100vw), var(--endY, 100vh)) rotate(var(--angle, 0deg));
        width: var(--length, 100px);
        opacity: 0;
    }
}

/* 主内容区域 */
.container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    position: relative;
    z-index: 1;
    text-align: center;
}


/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background: rgba(1, 2, 19, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(100, 180, 255, 0.3);
    z-index: 1000;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-title {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(100, 180, 255, 0.8);
    background: linear-gradient(to right, #e0e0e0, #ffffff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 1px;
    transition: color 0.3s ease, text-shadow 0.3s ease, transform 0.3s ease;
    position: relative;
    padding: 5px 0;
}

.nav-link:hover {
    color: white;
    text-shadow: 0 0 8px rgba(100, 180, 255, 0.8);
    transform: translateY(-2px);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(100, 180, 255, 0.8), transparent);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-menu {
    display: none;
}

.nav-right {
    display: flex;
    align-items: center;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    transition: background 0.3s ease;
}

.user-info:hover {
    background: rgba(255, 255, 255, 0.15);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4a90e2, #5e5ce6);
    box-shadow: 0 0 10px rgba(100, 180, 255, 0.5);
}

.user-name {
    font-size: 0.9rem;
    color: white;
    font-weight: 500;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .navbar {
        padding: 5px 15px;
    }

    .nav-title {
        font-size: 0.9rem;
    }

    .nav-link {
        font-size: 0.5rem;
    }

    .nav-left {
        gap: 20px;
    }

    .user-avatar {
        width: 25px;
        height: 25px;
    }

    .user-name {
        font-size: 0.7rem;
    }
}

@media (max-width: 910px) {
    .nav-link {
        display: none;
    }
}

.about-section {
    padding: 100px 20px;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 60px;
    text-align: center;
    text-shadow: 0 0 20px rgba(100, 180, 255, 0.6);
    background: linear-gradient(to right, #e0e0e0, #ffffff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(100, 180, 255, 0.8), transparent);
}

.company-intro {
    font-size: 1.2rem;
    line-height: 1.8;
    text-align: start;
    margin-bottom: 80px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

/* 业务板块网格 */
.business-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 100px;
}

.business-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.4s ease;
    border: 1px solid rgba(100, 180, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.business-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(100, 180, 255, 0.1), transparent);
    transition: 0.5s;
}

.business-card:hover::before {
    left: 100%;
}

.business-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(100, 180, 255, 0.3);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.business-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: inline-block;
    background: linear-gradient(135deg, #4a90e2, #5e5ce6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.business-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: white;
}

.business-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
}

/* 新闻卡片区域 */
.news-section {
    padding: 100px 20px;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

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

.news-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.4s ease;
    border: 1px solid rgba(100, 180, 255, 0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(100, 180, 255, 0.3);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.news-header {
    padding: 25px 25px 15px;
    position: relative;
}

.news-category {
    display: inline-block;
    padding: 6px 15px;
    background: rgba(100, 180, 255, 0.2);
    color: #64b4ff;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 20px;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.news-title {
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 15px;
    color: white;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-date {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    gap: 5px;
}

.news-content {
    padding: 0 25px 25px;
    flex-grow: 1;
}

.news-excerpt {
    text-align: start;
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

.news-tag {
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.news-tag:hover {
    background: rgba(100, 180, 255, 0.3);
    color: white;
}

.news-footer {
    padding: 20px 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.read-more {
    color: #64b4ff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.read-more:hover {
    color: white;
    text-shadow: 0 0 10px rgba(100, 180, 255, 0.8);
}

/* 公司愿景 */
.vision-section {
    padding: 100px 20px;
    text-align: center;
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.vision-text {
    font-size: 1.8rem;
    font-weight: 300;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    font-style: italic;
    position: relative;
    padding: 0 20px;
}

.vision-text::before,
.vision-text::after {
    content: '"';
    font-size: 3rem;
    color: rgba(100, 180, 255, 0.5);
    position: absolute;
}

.vision-text::before {
    top: -20px;
    left: 0;
}

.vision-text::after {
    bottom: -40px;
    right: 0;
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    
    .company-intro {
        font-size: 1.1rem;
        padding: 0 10px;
    }
    
    .business-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .vision-text {
        font-size: 1.4rem;
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .about-section,
    .news-section,
    .vision-section {
        padding: 60px 15px;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 40px;
    }
    
    .business-card {
        padding: 30px 20px;
    }
}