/* ========================================
   长沙碳捕科技有限公司官网样式
   ======================================== */

/* CSS 变量 - 深色科技主题 */
:root {
    /* 主色调 */
    --primary: #00d4ff;
    --primary-dark: #0099cc;
    --primary-light: #66e5ff;
    
    /* 背景色 */
    --bg-dark: #0a0a0f;
    --bg-card: #12121a;
    --bg-card-hover: #1a1a25;
    --bg-gradient: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 50%, #0a0a0f 100%);
    
    /* 文字颜色 */
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --text-muted: #6a6a7a;
    
    /* 边框和阴影 */
    --border-color: rgba(255, 255, 255, 0.08);
    --shadow-glow: 0 0 40px rgba(0, 212, 255, 0.15);
    --shadow-card: 0 4px 30px rgba(0, 0, 0, 0.3);
    
    /* 间距 */
    --section-padding: 100px 0;
    --container-padding: 0 20px;
    
    /* 动画 */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* 字体 */
    --font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* 重置样式 */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* 容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--container-padding);
}

/* 区块通用样式 */
.section {
    padding: var(--section-padding);
    position: relative;
}

.section-header {
    margin-bottom: 60px;
}

.section-header.center {
    text-align: center;
}

.section-label {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 16px;
    padding: 6px 16px;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 20px;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-desc {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================
   导航栏
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    background: transparent;
    transition: all var(--transition-normal);
}

.navbar.scrolled {
    padding: 12px 0;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.25rem;
}

.logo-icon {
    font-size: 1.5rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.1); }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
    position: relative;
    padding: 8px 0;
    transition: color var(--transition-fast);
}

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

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

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

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all var(--transition-normal);
}

/* ========================================
   Hero 首页横幅
   ======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(0, 212, 255, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(0, 150, 255, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 100%, rgba(0, 212, 255, 0.1) 0%, transparent 50%);
}

.hero-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0.3;
    animation: float 15s infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 0.3;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(-10vh) scale(1);
        opacity: 0;
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 0 20px;
}

.hero-title {
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
}

.title-line {
    display: block;
}

.title-line:nth-child(2) {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 3vw, 1.5rem);
    color: var(--text-secondary);
    margin-bottom: 32px;
    font-weight: 300;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 48px;
}

.tag {
    padding: 10px 24px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 30px;
    font-size: 0.875rem;
    color: var(--primary-light);
    transition: all var(--transition-normal);
}

.tag:hover {
    background: rgba(0, 212, 255, 0.2);
    transform: translateY(-2px);
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 40px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--bg-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 50px;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-glow);
}

.hero-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 60px rgba(0, 212, 255, 0.3);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.mouse {
    width: 24px;
    height: 40px;
    border: 2px solid var(--text-muted);
    border-radius: 12px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--primary);
    border-radius: 2px;
    animation: scroll 1.5s infinite;
}

@keyframes scroll {
    0% { opacity: 1; top: 8px; }
    100% { opacity: 0; top: 20px; }
}

.arrow {
    width: 12px;
    height: 12px;
    border-right: 2px solid var(--text-muted);
    border-bottom: 2px solid var(--text-muted);
    transform: rotate(45deg);
    animation: bounce 1.5s infinite;
}

@keyframes bounce {
    0%, 100% { transform: rotate(45deg) translate(0, 0); }
    50% { transform: rotate(45deg) translate(5px, 5px); }
}

/* ========================================
   公司简介摘要
   ======================================== */
.intro-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.intro-text {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.8;
}

.intro-stats {
    display: flex;
    gap: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 8px;
}

.intro-visual {
    display: flex;
    justify-content: center;
}

.visual-card {
    position: relative;
    width: 300px;
    height: 300px;
    background: var(--bg-card);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, var(--primary), transparent 30%);
    animation: rotate 4s linear infinite;
    opacity: 0.3;
}

@keyframes rotate {
    100% { transform: rotate(360deg); }
}

.card-content {
    position: absolute;
    inset: 2px;
    background: var(--bg-card);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.icon-item {
    font-size: 3rem;
    opacity: 0.8;
}

/* ========================================
   核心业务
   ======================================== */
.services {
    background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(0, 212, 255, 0.02) 50%, var(--bg-dark) 100%);
}

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

.service-card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 40px 30px;
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 100%);
    transform: scaleX(0);
    transition: transform var(--transition-normal);
}

.service-card:hover {
    transform: translateY(-10px);
    background: var(--bg-card-hover);
    box-shadow: var(--shadow-glow);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 16px;
    margin-bottom: 24px;
}

.service-icon svg {
    width: 32px;
    height: 32px;
    color: var(--primary);
}

.service-title {
    font-size: 1.375rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.service-desc {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.service-list {
    list-style: none;
}

.service-list li {
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.service-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary);
}

/* ========================================
   优势亮点
   ======================================== */
.advantages {
    background: var(--bg-dark);
}

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

.advantage-item {
    text-align: center;
    padding: 40px 30px;
    background: var(--bg-card);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
}

.advantage-item:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 212, 255, 0.3);
}

.advantage-number {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
}

.advantage-item h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.advantage-item p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

/* ========================================
   公司图片展示
   ======================================== */
.gallery {
    background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(0, 212, 255, 0.02) 100%);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 16/10;
    border: 1px solid var(--border-color);
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 50%);
    display: flex;
    align-items: flex-end;
    padding: 30px;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.gallery-item:hover .gallery-img {
    transform: scale(1.05);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay span {
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 600;
}

/* ========================================
   关于我们
   ======================================== */
.about-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.about-text {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 2;
}

.about-text p {
    margin-bottom: 24px;
    text-indent: 2em;
}

.about-card {
    background: var(--bg-card);
    border-radius: 24px;
    padding: 40px;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.2) 0%, transparent 70%);
}

.about-card-inner {
    position: relative;
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.about-card h3 {
    font-size: 1.5rem;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.principles {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.principle {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(0, 212, 255, 0.05);
    border-radius: 12px;
    transition: all var(--transition-normal);
}

.principle:hover {
    background: rgba(0, 212, 255, 0.1);
    transform: translateX(5px);
}

.principle-icon {
    font-size: 1.25rem;
}

.principle span:last-child {
    font-weight: 500;
    color: var(--text-primary);
}

/* ========================================
   联系我们
   ======================================== */
.contact {
    background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(0, 0, 0, 0.5) 100%);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

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

.contact-item {
    display: flex;
    gap: 20px;
    padding: 24px;
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
}

.contact-item:hover {
    border-color: rgba(0, 212, 255, 0.3);
    transform: translateX(5px);
}

.contact-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 12px;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 24px;
    height: 24px;
    color: var(--primary);
}

.contact-detail h4 {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 6px;
    font-weight: 400;
}

.contact-detail p {
    font-size: 1rem;
    color: var(--text-primary);
}

.contact-cta {
    display: flex;
    align-items: center;
}

.cta-card {
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(0, 212, 255, 0.05) 100%);
    border-radius: 24px;
    padding: 50px 40px;
    border: 1px solid var(--border-color);
    text-align: center;
    width: 100%;
}

.cta-card h3 {
    font-size: 1.75rem;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.cta-card p {
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.8;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 40px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--bg-dark);
    text-decoration: none;
    font-weight: 600;
    border-radius: 50px;
    transition: all var(--transition-normal);
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

/* ========================================
   页脚
   ======================================== */
.footer {
    background: #050508;
    padding: 60px 0 30px;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 30px;
}

.footer-logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-top: 8px;
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 8px;
}

.footer-bottom a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-bottom a:hover {
    color: var(--primary);
}

/* ========================================
   回到顶部按钮
   ======================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.back-to-top svg {
    width: 24px;
    height: 24px;
    color: var(--text-primary);
}

.back-to-top:hover svg {
    color: var(--bg-dark);
}

/* ========================================
   动画效果
   ======================================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
}

.fade-in-up.animated {
    animation: fadeInUp 0.6s ease forwards;
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
}

.slide-in-left.animated {
    animation: slideInLeft 0.8s ease forwards;
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
}

.slide-in-right.animated {
    animation: slideInRight 0.8s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

/* ========================================
   响应式设计
   ======================================== */
@media (max-width: 1024px) {
    .intro-wrapper,
    .about-wrapper,
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .intro-visual,
    .about-visual {
        order: -1;
    }
    
    .visual-card {
        width: 250px;
        height: 250px;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 60px 0;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(10, 10, 15, 0.98);
        flex-direction: column;
        padding: 100px 40px;
        gap: 0;
        transition: right var(--transition-normal);
        border-left: 1px solid var(--border-color);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu li {
        padding: 20px 0;
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-menu li:last-child {
        border-bottom: none;
    }
    
    .nav-toggle {
        display: flex;
        z-index: 1001;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    .hero-title {
        font-size: clamp(2.5rem, 8vw, 4rem);
    }
    
    .hero-tags {
        flex-direction: column;
        align-items: center;
    }
    
    .intro-stats {
        flex-direction: column;
        gap: 24px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .advantages-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
    
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }
    
    .scroll-indicator {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-cta,
    .cta-btn {
        padding: 14px 30px;
        font-size: 0.9375rem;
    }
    
    .service-card {
        padding: 30px 20px;
    }
    
    .contact-item {
        padding: 20px;
        flex-direction: column;
        gap: 12px;
    }
    
    .cta-card {
        padding: 30px 20px;
    }
    
    .about-card {
        padding: 30px 20px;
    }
}
