/* 基础变量定义 */
:root {
    --primary-color: #4299e1;
    --text-light: #FFFFFF;
    --text-gray: #A0A0A0;
    --background-dark: #000000;
}

/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--background-dark);
    color: var(--text-light);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
}

/* 布局容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* 头部导航样式 */
.header {
    position: fixed;
    width: 100%;
    top: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
}

/* Logo样式 */
.logo {
    display: flex;
    flex-direction: column;
}

.logo h1 {
    font-size: 2rem;
    color: var(--text-light);
    font-weight: bold;
    margin: 0;
}

.logo .subtitle {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-top: 0.2rem;
}

/* 导航菜单 */
.nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav ul li a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
}

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

/* 英雄区域样式 */
.hero {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.95) 0%,
        rgba(0, 0, 0, 0.8) 50%,
        rgba(0, 0, 0, 0.6) 100%
    );
    z-index: 2;
}

.hero-image {
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    background-image: url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?auto=format&fit=crop&w=2000&q=80');
    background-size: cover;
    background-position: center;
    z-index: 1;
}

/* 添加动态背景效果 */
.tech-circles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(76, 161, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(76, 161, 255, 0.1) 0%, transparent 50%);
    z-index: 3;
}

.hero-content {
    position: relative;
    z-index: 4;
    display: flex;
    align-items: center;
    height: calc(100vh - 80px);
}

.hero-text {
    max-width: 600px;
    margin-right: auto;
}

.hero-title {
    font-size: 4rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    background: linear-gradient(45deg, #fff, #a5a5a5);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-gray);
    margin-bottom: 3rem;
}

.cta-group {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 2rem;
}

.cta-button.primary {
    background: var(--primary-color);
    color: white;
}

.cta-button.secondary {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.cta-button.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* 服务卡片区域 */
.services {
    padding: 6rem 0;
    background: #111;
}

.services h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 0 2rem;
}

.service-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-gray);
}

/* 关于我们区域 */
.about {
    padding: 6rem 0;
    background: #000;
    text-align: center;
}

.about h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.about p {
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-gray);
}

/* 联系我们区域 */
.contact {
    padding: 6rem 0;
    background: #111;
}

.contact h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.contact-info {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 12px;
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--text-gray);
}

.contact-info i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* 按钮样式 */
.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--primary-color);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: #2b6cb0;
    transform: translateY(-2px);
}

/* 页脚样式 */
footer {
    background: var(--background-dark);
    padding: 4rem 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-column h4 {
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 1.2rem;
    font-weight: 500;
}

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

.footer-column ul li {
    margin-bottom: 0.8rem;
}

.footer-column ul li a {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    background: #111;
    padding: 1.5rem 0;
    margin-top: 2rem;
}

.footer-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.company-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.company-logo {
    color: var(--text-light);
    font-weight: bold;
    font-size: 1.2rem;
}

.copyright {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.icp-info a {
    color: var(--text-gray);
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.icp-info a:hover {
    color: var(--text-light);
}

/* 响应式调整 */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-info {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .company-info {
        flex-direction: column;
        gap: 0.5rem;
    }
}

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

/* 响应式布局 */
@media (max-width: 768px) {
    .service-grid {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .cta-group {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
}

/* 调整 header 布局 */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Products 区域样式 */
.products, .stories {
    padding: 6rem 0;
    background: #000;
}

.products h2, .stories h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-light);
}

.product-grid, .stories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.product-card, .story-card {
    aspect-ratio: 4/3;
    border-radius: 12px;
    padding: 2rem;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: transform 0.3s ease;
}

.product-card::before, .story-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.2) 0%,
        rgba(0,0,0,0.7) 100%
    );
    z-index: 1;
}

.product-card *, .story-card * {
    position: relative;
    z-index: 2;
}

.product-card:hover, .story-card:hover {
    transform: translateY(-5px);
}

.tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--text-light);
}

.product-card h3, .story-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-light);
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.product-card p, .story-card p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    line-height: 1.4;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* 响应式调整 */
@media (max-width: 1024px) {
    .product-grid, .stories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .product-grid, .stories-grid {
        grid-template-columns: 1fr;
    }
}

/* 特色卡片样式 */
.features {
    padding: 6rem 0;
    background: #000;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    padding: 2.5rem;
    border-radius: 16px;
    color: white;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(255,255,255,0.1), rgba(255,255,255,0));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: 1.5rem;
}

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

.feature-card p {
    font-size: 1.1rem;
    opacity: 0.9;
    line-height: 1.6;
}

/* 添加新的组合样式 */
.about-contact {
    padding: 6rem 0;
    background: #111;
}

.about-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;  /* 两列等宽布局 */
    gap: 4rem;
    align-items: start;
}

.about-section, .contact-section {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    height: 100%;
}

.about-section h2, .contact-section h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.about-section p {
    color: var(--text-gray);
    line-height: 1.8;
    font-size: 1.1rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-gray);
    font-size: 1.1rem;
}

.contact-info i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .about-contact-grid {
        grid-template-columns: 1fr;  /* 在移动端变为单列 */
        gap: 2rem;
    }
}

/* 移动端菜单按钮样式 */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--text-light);
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* 移动端适配 */
@media (max-width: 768px) {
    /* 显示移动端菜单按钮 */
    .mobile-menu-btn {
        display: block;
    }

    /* 导航菜单样式 */
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(10px);
        padding: 80px 2rem;
        transition: right 0.3s ease;
    }

    .nav.active {
        right: 0;
    }

    .nav ul {
        flex-direction: column;
        gap: 2rem;
    }

    .nav ul li a {
        font-size: 1.2rem;
    }

    /* 调整 logo 大小 */
    .logo h1 {
        font-size: 1.5rem;
    }

    .logo .subtitle {
        font-size: 0.8rem;
    }

    /* 调整英雄区域 */
    .hero-text {
        text-align: center;
        padding: 0 1rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    /* 调整卡片布局 */
    .features-grid,
    .product-grid,
    .stories-grid,
    .service-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }

    /* 调整间距 */
    .products,
    .stories,
    .services,
    .features,
    .about-contact {
        padding: 4rem 0;
    }

    /* 调整标题大小 */
    .products h2,
    .stories h2,
    .services h2 {
        font-size: 2rem;
        padding: 0 1rem;
    }

    /* 调整卡片内容 */
    .product-card,
    .story-card {
        aspect-ratio: 3/4;
    }

    /* 调整底部布局 */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }

    .footer-bottom {
        padding: 1rem;
    }

    .footer-info {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* 更小屏幕的适配 */
@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .cta-group {
        flex-direction: column;
        gap: 1rem;
        padding: 0 2rem;
    }

    .about-contact-grid {
        gap: 2rem;
    }
}

/* 横屏模式适配 */
@media (max-height: 600px) and (orientation: landscape) {
    .nav {
        padding-top: 60px;
    }

    .nav ul {
        gap: 1rem;
    }
} 