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

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    color: #e0e0e0;
    background: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 50%, #16213e 100%);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* 添加科技感网格背景 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 180, 216, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 180, 216, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: -1;
}

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

.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    background: linear-gradient(45deg, #00b4d8, #0077b6);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 180, 216, 0.3);
    border: 1px solid rgba(0, 180, 216, 0.5);
    text-decoration: none;
    font-weight: 600;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 180, 216, 0.5);
    border-color: rgba(0, 180, 216, 0.8);
}

.btn-primary {
    background: linear-gradient(45deg, #00b4d8, #0077b6);
}

.btn-secondary {
    background: linear-gradient(45deg, #6a0dad, #4a0080);
    border-color: rgba(106, 13, 173, 0.4);
}

.btn-secondary:hover {
    box-shadow: 0 6px 20px rgba(106, 13, 173, 0.4);
    border-color: rgba(106, 13, 173, 0.6);
}

.btn-large {
    padding: 15px 30px;
    font-size: 18px;
}

.section-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 50px;
    position: relative;
    color: #ffffff;
    text-shadow: 0 0 20px rgba(0, 180, 216, 0.3);
    letter-spacing: 1px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #00b4d8, #6a0dad);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(0, 180, 216, 0.5);
}

.section-title::before {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 180, 216, 0.3), transparent);
}

/* 头部样式 */
.header {
    background: rgba(10, 10, 15, 0.98) !important;
    backdrop-filter: blur(15px) !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 180, 216, 0.2);
    transition: all 0.3s ease;
}

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

.logo h1 {
    color: #00b4d8;
    font-size: 24px;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(0, 180, 216, 0.5);
    letter-spacing: 1px;
}

/* 导航链接样式调整 */
.nav ul {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav ul li {
    margin-left: 30px;
    position: relative;
}

.nav ul li a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 4px;
    position: relative;
    overflow: visible;
    display: inline-block;
}

.nav ul li a::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00b4d8, transparent);
    transform: scaleX(0);
    transform-origin: center;
    transition: all 0.3s ease;
}

.nav ul li a:hover::before {
    transform: scaleX(1);
}

.nav ul li a:hover {
    color: #00b4d8;
    background: rgba(0, 180, 216, 0.1);
    text-shadow: 0 0 10px rgba(0, 180, 216, 0.5);
}

.nav ul li a:hover::before {
    left: 0;
}

/* 首屏大图 */
.hero {
    background: linear-gradient(135deg, rgba(10, 10, 15, 0.9) 0%, rgba(26, 26, 46, 0.9) 50%, rgba(22, 33, 62, 0.9) 100%), 
                url('../images/hero-bg.jpg') no-repeat center center/cover;
    height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: white;
    margin-top: 70px;
    position: relative;
    overflow: hidden;
}

/* 添加科技感装饰线条 */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(0, 180, 216, 0.1) 0%, transparent 50%);
    animation: pulse 4s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 800px;
    height: 800px;
    margin-top: -400px;
    margin-left: -400px;
    background: radial-gradient(circle, rgba(0, 180, 216, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 8s ease-in-out infinite;
}

/* 首屏添加网格线 */
.hero .container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 180, 216, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 180, 216, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none;
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.hero-content h2 {
    font-size: 48px;
    margin-bottom: 20px;
    text-shadow: 0 0 30px rgba(0, 180, 216, 0.5);
    background: linear-gradient(45deg, #00b4d8, #6a0dad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #b8b8b8;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

/* 添加CTA按钮 */
.hero-content .btn {
    margin-top: 30px;
    font-size: 18px;
    letter-spacing: 1px;
}

/* 服务介绍 */
.services {
    padding: 120px 0;
    background: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 100%);
    position: relative;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 10% 10%, rgba(0, 180, 216, 0.05) 0%, transparent 30%);
    pointer-events: none;
}

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

.service-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(0, 180, 216, 0.05), transparent);
    transform: rotate(30deg);
    opacity: 0;
    transition: all 0.6s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 180, 216, 0.2);
    border-color: rgba(0, 180, 216, 0.3);
}

.service-card:hover::before {
    opacity: 1;
    top: -100%;
    left: -100%;
}

.service-card .icon {
    font-size: 48px;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 10px rgba(0, 180, 216, 0.5));
    transition: all 0.3s ease;
}

.service-card:hover .icon {
    transform: scale(1.1);
    filter: drop-shadow(0 0 15px rgba(0, 180, 216, 0.7));
}

.service-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #00b4d8;
    text-shadow: 0 0 10px rgba(0, 180, 216, 0.3);
    letter-spacing: 1px;
}

.service-card p {
    color: #b8b8b8;
    line-height: 1.7;
}

/* 平台优势 */
.features {
    padding: 120px 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    position: relative;
}

.features::before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 90% 90%, rgba(106, 13, 173, 0.03) 0%, transparent 30%);
    pointer-events: none;
}

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

.feature-card {
    background: linear-gradient(135deg, rgba(0, 180, 216, 0.07), rgba(106, 13, 173, 0.03));
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 0;
    border-bottom: 50px solid rgba(0, 180, 216, 0.1);
    border-left: 50px solid transparent;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 180, 216, 0.2);
    border-color: rgba(0, 180, 216, 0.3);
}

.feature-card:hover::after {
    border-bottom: 100px solid rgba(0, 180, 216, 0.2);
    border-left: 100px solid transparent;
}

.feature-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #00b4d8;
    text-shadow: 0 0 10px rgba(0, 180, 216, 0.3);
    letter-spacing: 1px;
}

.feature-card p {
    color: #b8b8b8;
    line-height: 1.7;
}

/* 成功案例 */
.cases {
    padding: 120px 0;
    background: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 100%);
    position: relative;
}

.cases::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 80% 20%, rgba(106, 13, 173, 0.03) 0%, transparent 30%);
    pointer-events: none;
}

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

.case-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.case-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #6a0dad, #00b4d8);
    transform: scaleX(0);
    transition: all 0.3s ease;
}

.case-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(106, 13, 173, 0.15);
    border-color: rgba(106, 13, 173, 0.2);
}

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

.case-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #6a0dad;
    text-shadow: 0 0 10px rgba(106, 13, 173, 0.2);
    letter-spacing: 1px;
}

.case-card p {
    color: #b8b8b8;
    line-height: 1.7;
}

/* 页面底部 */
.footer {
    background: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 100%);
    color: #e0e0e0;
    padding: 50px 0 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 180, 216, 0.3), transparent);
}

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

.footer-section h3,
.footer-section h4 {
    margin-bottom: 20px;
    color: #00b4d8;
    text-shadow: 0 0 5px rgba(0, 180, 216, 0.3);
}

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

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #b8b8b8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #00b4d8;
    text-shadow: 0 0 10px rgba(0, 180, 216, 0.3);
}

.footer-section ul li a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

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

.footer-bottom a {
    color: #00b4d8;
    text-decoration: none;
}

.footer-bottom a:hover {
    text-shadow: 0 0 10px rgba(0, 180, 216, 0.3);
}

/* 认证按钮样式 */
.auth-buttons {
    display: flex;
    align-items: center;
}

.auth-buttons .btn {
    margin-left: 10px;
    font-size: 14px;
    padding: 8px 16px;
}

/* 响应式设计 */
  @media (max-width: 768px) {
     .auth-buttons {
         margin-top: 10px;
         justify-content: center;
         width: 100%;
     }
     
     .auth-buttons .btn {
         margin: 5px;
         flex: 1;
         text-align: center;
     }

     .header .container {
         flex-direction: column;
         padding: 10px 0;
     }
     
     .header .container > div {
         flex-direction: column;
         width: 100%;
         align-items: center;
     }

     .logo h1 {
         font-size: 20px;
         margin-bottom: 10px;
     }
    
    .nav ul {
        margin: 20px 0;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav ul li {
        margin: 5px 10px;
    }
    
    .hero-content h2 {
        font-size: 36px;
    }
    
    .hero-content p {
        font-size: 18px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .services,
    .features,
    .cases {
        padding: 80px 0;
    }
}

/* 添加一些科技感动画效果 */
@keyframes glow {
    0%, 100% { box-shadow: 0 0 20px rgba(0, 180, 216, 0.3); }
    50% { box-shadow: 0 0 30px rgba(0, 180, 216, 0.6); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes scanline {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

/* 为关键元素添加动画延迟，创造层次感 */
.service-card:nth-child(1),
.feature-card:nth-child(1),
.case-card:nth-child(1) {
    animation-delay: 0s;
}

.service-card:nth-child(2),
.feature-card:nth-child(2),
.case-card:nth-child(2) {
    animation-delay: 0.2s;
}

.service-card:nth-child(3),
.feature-card:nth-child(3),
.case-card:nth-child(3) {
    animation-delay: 0.4s;
}

.service-card:nth-child(4),
.feature-card:nth-child(4) {
    animation-delay: 0.6s;
}

/* 扫描线效果 */
.scanline {
    position: fixed;
    top: -100%;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, transparent, rgba(0, 180, 216, 0.3), transparent);
    z-index: 10000;
    animation: scanline 6s linear infinite;
    pointer-events: none;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    overflow: auto;
    transition: opacity 0.3s ease;
}

.modal-content {
    background: linear-gradient(135deg, rgba(10, 10, 15, 0.95), rgba(26, 26, 46, 0.95));
    margin: 10% auto;
    padding: 30px;
    border: 1px solid rgba(0, 180, 216, 0.3);
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(15px);
    animation: modalOpen 0.3s ease-out;
}

@keyframes modalOpen {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-modal {
    color: #b8b8b8;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal:hover,
.close-modal:focus {
    color: #00b4d8;
    text-decoration: none;
}

.qrcode-container {
    margin: 20px 0;
    padding: 15px;
    background: white;
    border-radius: 8px;
    display: inline-block;
}

.qrcode-container img {
    display: block;
    max-width: 100%;
    height: auto;
}

.modal h3 {
    color: #00b4d8;
    text-shadow: 0 0 10px rgba(0, 180, 216, 0.3);
    margin-bottom: 20px;
    font-size: 24px;
}

.modal p {
    color: #b8b8b8;
    line-height: 1.6;
    margin-top: 20px;
}

/* 添加回到顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: rgba(0, 180, 216, 0.8);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 180, 216, 0.4);
    z-index: 999;
}

.back-to-top:hover {
    background: rgba(0, 180, 216, 1);
    transform: translateY(-5px);
}

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