/* 北京一心电子商务有限公司 - 主样式文件 */
/* 科技感设计风格 */

/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Exo 2', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background-color: #0a0e27;
    overflow-x: hidden;
    position: relative;
}

/* 容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    outline: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: linear-gradient(135deg, #00d4ff 0%, #8b5cf6 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 212, 255, 0.6);
}

.btn-outline {
    background: transparent;
    border: 2px solid #00d4ff;
    color: #00d4ff;
}

.btn-outline:hover {
    background: rgba(0, 212, 255, 0.1);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.5);
}

.btn-large {
    padding: 15px 35px;
    font-size: 18px;
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 15px 0;
    background: rgba(10, 14, 39, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-size: 24px;
    font-weight: 900;
    color: white;
    font-family: 'Orbitron', sans-serif;
}

.logo-icon {
    margin-right: 10px;
    color: #00d4ff;
    font-size: 28px;
}

.logo-highlight {
    color: #8b5cf6;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link:hover, .nav-link.active {
    color: #00d4ff;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.7);
}

.nav-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.mobile-toggle span {
    width: 25px;
    height: 3px;
    background: #00d4ff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* 英雄区域 */
.hero {
    padding: 180px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-content {
    flex: 1;
}

.hero-title {
    font-size: 56px;
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.2;
    font-family: 'Orbitron', sans-serif;
}

.hero-gradient {
    background: linear-gradient(135deg, #00d4ff 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

.floating-card {
    width: 150px;
    height: 200px;
    perspective: 1000px;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.floating-card:hover .card-inner {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 20px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.card-front {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 212, 255, 0.3);
}

.card-back {
    background: linear-gradient(135deg, #00d4ff 0%, #8b5cf6 100%);
    transform: rotateY(180deg);
}

.card-icon {
    font-size: 40px;
    color: #00d4ff;
    margin-bottom: 15px;
}

.card-front h3 {
    font-size: 18px;
    font-weight: 600;
}

.card-back p {
    font-size: 14px;
    color: white;
}

.delay-1 {
    animation-delay: 0.2s !important;
}

.delay-2 {
    animation-delay: 0.4s !important;
}

/* 内容区域 */
.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 42px;
    font-weight: 900;
    margin-bottom: 15px;
    font-family: 'Orbitron', sans-serif;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #00d4ff 0%, #8b5cf6 100%);
}

.section-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    max-width: 700px;
    margin: 0 auto;
}

/* 公司概述网格 */
.overview-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.overview-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 30px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.overview-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 212, 255, 0.5);
    box-shadow: 0 15px 30px rgba(0, 212, 255, 0.2);
}

.overview-icon {
    font-size: 40px;
    color: #00d4ff;
    margin-bottom: 20px;
}

.overview-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: white;
}

.overview-card p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

/* 业务卡片 */
.business-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.business-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.business-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 212, 255, 0.5);
    box-shadow: 0 15px 30px rgba(0, 212, 255, 0.2);
}

.business-card-header {
    padding: 30px 30px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.business-icon {
    font-size: 32px;
    color: #00d4ff;
}

.business-card-header h3 {
    font-size: 24px;
    color: white;
}

.business-card-body {
    padding: 0 30px 30px;
}

.business-card-body p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 15px;
    line-height: 1.6;
}

.business-card-body ul {
    list-style: none;
    padding-left: 0;
}

.business-card-body li {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
}

.business-card-body li::before {
    content: '▸';
    color: #00d4ff;
    position: absolute;
    left: 0;
}

/* 解决方案网格 */
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.solution-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.solution-item:hover {
    transform: translateY(-10px);
    background: rgba(0, 212, 255, 0.1);
    box-shadow: 0 10px 25px rgba(0, 212, 255, 0.3);
}

.solution-number {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.3);
    font-weight: bold;
    font-family: 'Orbitron', sans-serif;
}

.solution-item h4 {
    font-size: 20px;
    margin-bottom: 10px;
    color: white;
}

.solution-item p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 1.5;
}

/* 页脚 */
.footer {
    background: rgba(5, 10, 25, 0.9);
    padding: 60px 0 30px;
    border-top: 1px solid rgba(0, 212, 255, 0.2);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-size: 20px;
    margin-bottom: 20px;
    color: white;
    font-family: 'Orbitron', sans-serif;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    font-size: 24px;
    font-weight: 900;
    color: white;
    margin-bottom: 20px;
    font-family: 'Orbitron', sans-serif;
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
    padding-left: 0;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: #00d4ff;
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 12px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #00d4ff;
    color: white;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin: 0 10px;
}

.footer-bottom a:hover {
    color: #00d4ff;
}

/* 在线客服 */
.chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 350px;
    height: 500px;
    background: rgba(10, 14, 39, 0.95);
    border-radius: 15px;
    border: 1px solid rgba(0, 212, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
    display: none;
    flex-direction: column;
    z-index: 1001;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.chat-widget.active {
    display: flex;
}

.chat-header {
    padding: 20px;
    background: rgba(0, 212, 255, 0.1);
    border-bottom: 1px solid rgba(0, 212, 255, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h5 {
    font-size: 18px;
    color: white;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 20px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.chat-close:hover {
    color: #00d4ff;
}

.chat-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 20px;
}

.message {
    display: flex;
    margin-bottom: 20px;
}

.message.bot {
    flex-direction: row;
}

.message.user {
    flex-direction: row-reverse;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 212, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #00d4ff;
    margin: 0 10px;
}

.message.bot .content {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 15px 15px 15px 0;
    max-width: 70%;
}

.message.user .content {
    background: rgba(0, 212, 255, 0.2);
    padding: 15px;
    border-radius: 15px 15px 0 15px;
    max-width: 70%;
    color: white;
}

.chat-input {
    display: flex;
    gap: 10px;
}

.chat-input input {
    flex: 1;
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid rgba(0, 212, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    outline: none;
    font-size: 14px;
}

.chat-input input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.chat-input button {
    width: 45px;
    border-radius: 8px;
    border: none;
    background: linear-gradient(135deg, #00d4ff 0%, #8b5cf6 100%);
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chat-input button:hover {
    transform: scale(1.05);
}

/* 实用工具类 */
.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 40px;
}

/* 动画类 */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

.floating-card {
    animation: float 3s ease-in-out infinite;
}

/* 粒子画布 */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* 联系页面特定样式 */
.contact-hero {
    padding: 150px 0 80px;
}

.contact-visual {
    display: flex;
    gap: 30px;
    justify-content: center;
}

.visual-card {
    width: 180px;
    height: 180px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    animation: float 3s ease-in-out infinite;
}

.visual-card:hover {
    border-color: rgba(0, 212, 255, 0.5);
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 212, 255, 0.2);
}

.visual-icon {
    font-size: 40px;
    color: #00d4ff;
    margin-bottom: 15px;
}

.visual-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: white;
}

.visual-card p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.contact-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.contact-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 212, 255, 0.5);
    box-shadow: 0 15px 30px rgba(0, 212, 255, 0.2);
}

.contact-icon {
    font-size: 40px;
    color: #00d4ff;
    margin-bottom: 20px;
}

.contact-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: white;
}

.contact-card p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 20px;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #00d4ff;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.contact-link:hover {
    gap: 12px;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.7);
}

.contact-form-section {
    background: rgba(5, 10, 25, 0.5);
    border-radius: 20px;
    padding: 60px;
    margin-top: 40px;
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
}

.form-header {
    text-align: center;
    margin-bottom: 40px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 16px;
    font-weight: 600;
    color: white;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(0, 212, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 16px;
    transition: all 0.3s ease;
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #00d4ff;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.5);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2300d4ff'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 20px;
}

.form-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
}

.form-note {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    text-align: center;
}

.form-note a {
    color: #00d4ff;
    text-decoration: none;
}

.map-section {
    padding-bottom: 80px;
}

.map-container {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 60px;
    text-align: center;
    border: 1px solid rgba(0, 212, 255, 0.3);
}

.map-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.map-icon {
    font-size: 60px;
    color: #00d4ff;
    margin-bottom: 10px;
}

.map-placeholder h3 {
    font-size: 28px;
    color: white;
    margin-bottom: 10px;
}

.map-placeholder p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 18px;
    margin-bottom: 30px;
    max-width: 600px;
}

.map-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
}

@media (max-width: 1024px) {
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-visual {
        flex-wrap: wrap;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-form-section {
        padding: 30px 20px;
    }
    
    .map-container {
        padding: 30px 20px;
    }
    
    .map-actions {
        flex-direction: column;
    }
    
    .map-actions .btn {
        width: 100%;
    }
}