/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏样式 */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand h1 {
    color: #2563eb;
    font-size: 1.8rem;
    font-weight: 700;
}

.nav-brand i {
    margin-right: 8px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: #2563eb;
}

/* 下拉菜单样式 */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
}

.dropdown-toggle i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-toggle i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    margin-top: 10px;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu li a {
    display: block;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid #f0f0f0;
}

.dropdown-menu li:first-child a {
    border-radius: 8px 8px 0 0;
}

.dropdown-menu li:last-child a {
    border-bottom: none;
    border-radius: 0 0 8px 8px;
}

.dropdown-menu li a:hover {
    background: #f8f9fa;
    color: #2563eb;
    padding-left: 25px;
}

/* 移除所有链接下划线 */
a {
    text-decoration: none !important;
}

/* 性能优化：减少重排重绘 */
.product-card,
.advantage-item,
.contact-item {
    will-change: transform;
}

/* 图片优化 */
img {
    max-width: 100%;
    height: auto;
    loading: lazy;
}

/* 滚动优化 */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

/* 锚点链接样式 */
.nav-menu li:not(.dropdown) > a {
    position: relative;
}

.nav-menu li:not(.dropdown) > a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #2563eb;
    transition: width 0.3s ease;
}

.nav-menu li:not(.dropdown) > a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* 主横幅样式 */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 120px 0 80px;
    margin-top: 80px;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: #fff;
    color: #2563eb;
}

.btn-primary:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #2563eb;
}

.btn-outline {
    background: transparent;
    color: #2563eb;
    border: 2px solid #2563eb;
    width: 100%;
}

.btn-outline:hover {
    background: #2563eb;
    color: white;
}

.hero-image {
    text-align: center;
}

.hero-image i {
    font-size: 15rem;
    opacity: 0.8;
}

/* 通用区块样式 */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: #333;
}

/* 产品展示样式 */
.products {
    background: white;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.product-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.product-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.product-icon i {
    font-size: 2rem;
    color: white;
}

.product-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.product-card p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.product-features {
    list-style: none;
    margin-bottom: 1.5rem;
    text-align: left;
}

.product-features li {
    padding: 0.5rem 0;
    color: #555;
    position: relative;
    padding-left: 1.5rem;
}

.product-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #2563eb;
    font-weight: bold;
}

.product-price {
    margin-bottom: 1.5rem;
}

.price {
    font-size: 2rem;
    font-weight: 700;
    color: #2563eb;
}

.unit {
    color: #666;
    font-size: 1rem;
}

/* 数据中心样式 */
.datacenters {
    background: #f8f9fa;
}

.map-container {
    background: white;
    border-radius: 12px;
    padding: 3rem;
    margin-bottom: 3rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    position: relative;
    height: 400px;
    background-image: url('https://picsum.photos/seed/worldmap/1200/400.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.map-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(37, 99, 235, 0.1);
    z-index: 1;
}

.map-points {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.map-point {
    position: absolute;
    width: 16px;
    height: 16px;
    background: #ff4444;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 20px rgba(255, 68, 68, 0.6), 0 2px 8px rgba(0,0,0,0.3);
    cursor: pointer;
    transition: all 0.3s;
    animation: pulse 2s infinite;
    z-index: 10;
}

.map-point:hover {
    transform: scale(1.8);
    background: #ff6666;
    box-shadow: 0 0 30px rgba(255, 68, 68, 0.8), 0 2px 12px rgba(0,0,0,0.4);
}

.map-point.active {
    background: #ff6666;
    transform: scale(1.5);
    animation: none;
}

.map-point .point-name {
    position: absolute;
    top: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s;
    font-weight: 600;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.map-point:hover .point-name {
    opacity: 1;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 68, 68, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(255, 68, 68, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 68, 68, 0);
    }
}

/* 地图点位位置 - 根据真实世界地图调整 */
.map-point[data-region="北京"] { top: 28%; left: 75%; }
.map-point[data-region="上海"] { top: 35%; left: 77%; }
.map-point[data-region="深圳"] { top: 42%; left: 74%; }
.map-point[data-region="香港"] { top: 40%; left: 73%; }
.map-point[data-region="新加坡"] { top: 55%; left: 68%; }
.map-point[data-region="东京"] { top: 32%; left: 85%; }
.map-point[data-region="洛杉矶"] { top: 38%; left: 12%; }
.map-point[data-region="纽约"] { top: 33%; left: 22%; }
.map-point[data-region="法兰克福"] { top: 28%; left: 47%; }
.map-point[data-region="伦敦"] { top: 26%; left: 44%; }
.map-point[data-region="悉尼"] { top: 65%; left: 82%; }
.map-point[data-region="莫斯科"] { top: 22%; left: 58%; }

/* 国内新增数据中心位置 */
.map-point[data-region="武汉"] { top: 33%; left: 72%; }
.map-point[data-region="南昌"] { top: 36%; left: 74%; }
.map-point[data-region="扬州"] { top: 34%; left: 76%; }
.map-point[data-region="宁波"] { top: 36%; left: 76%; }
.map-point[data-region="枣庄"] { top: 32%; left: 76%; }
.map-point[data-region="十堰"] { top: 31%; left: 71%; }
.map-point[data-region="秦皇岛"] { top: 29%; left: 76%; }
.map-point[data-region="襄阳"] { top: 32%; left: 71%; }
.map-point[data-region="镇江"] { top: 34%; left: 76%; }

.datacenter-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat-item {
    text-align: center;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2563eb;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #666;
    font-size: 1.1rem;
}

/* 优势特点样式 */
.advantages {
    background: white;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.advantage-item {
    text-align: center;
    padding: 2rem;
}

.advantage-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: transform 0.3s;
}

.advantage-item:hover .advantage-icon {
    transform: scale(1.1);
}

.advantage-icon i {
    font-size: 2.5rem;
    color: white;
}

.advantage-item h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #333;
}

.advantage-item p {
    color: #666;
    line-height: 1.6;
}

/* 客户案例样式 */
.testimonials {
    background: #f8f9fa;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-item {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.testimonial-content {
    margin-bottom: 1.5rem;
}

.testimonial-content p {
    color: #555;
    line-height: 1.8;
    font-style: italic;
    position: relative;
    padding-left: 2rem;
}

.testimonial-content p:before {
    content: """;
    position: absolute;
    left: 0;
    top: -10px;
    font-size: 3rem;
    color: #2563eb;
    opacity: 0.3;
}

.author-info h4 {
    color: #333;
    margin-bottom: 0.5rem;
}

.author-info span {
    color: #666;
    font-size: 0.9rem;
}

/* 联系我们样式 */
.contact {
    background: white;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 1.5rem;
    color: white;
}

.contact-details h3 {
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.contact-details p {
    color: #666;
    margin-bottom: 0.25rem;
}

/* 页脚样式 */
.footer {
    background: #1a1a1a;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: #2563eb;
    margin-bottom: 1rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: white;
}

.footer-section p {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: #2563eb;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: background 0.3s;
}

.social-links a:hover {
    background: #2563eb;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #333;
    color: #999;
}

/* 浮动咨询按钮 */
.float-contact {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
}

.float-btn {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.4);
    transition: all 0.3s ease;
    text-decoration: none;
    animation: floatPulse 2s ease-in-out infinite;
}

.float-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 99, 235, 0.6);
}

@keyframes floatPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    z-index: 9998;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.6);
}

/* 页面加载动画 */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease;
}

.loader-content {
    text-align: center;
    color: white;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 选中文本样式 */
::selection {
    background: #2563eb;
    color: white;
}

::-moz-selection {
    background: #2563eb;
    color: white;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #2563eb;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1d4ed8;
}





/* 通知系统 */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    color: #333;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    z-index: 10001;
    transform: translateX(400px);
    transition: all 0.3s ease;
    max-width: 300px;
    border-left: 4px solid #2563eb;
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    border-left-color: #4caf50;
    background: #f1f8e9;
    color: #2e7d32;
}

.notification.warning {
    border-left-color: #ff9800;
    background: #fff3e0;
    color: #f57c00;
}

.notification.error {
    border-left-color: #f44336;
    background: #ffebee;
    color: #c62828;
}

.notification.info {
    border-left-color: #2196f3;
    background: #e3f2fd;
    color: #1976d2;
}

.notification-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #666;
    transition: color 0.3s ease;
}

.notification-close:hover {
    color: #333;
}

.notification-title {
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 1rem;
}

.notification-message {
    line-height: 1.5;
    font-size: 0.9rem;
}

/* 促销横幅 */
.promo-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 0;
    position: relative;
    overflow: hidden;
}

.promo-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 3s ease-in-out infinite;
}

.promo-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    position: relative;
    z-index: 1;
}

.promo-content i {
    font-size: 1.2rem;
    animation: pulse 2s ease-in-out infinite;
}

.promo-content span {
    font-weight: 600;
    font-size: 0.95rem;
}

.promo-btn {
    background: white;
    color: #667eea;
    padding: 6px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.promo-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.promo-close {
    position: absolute;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.promo-close:hover {
    opacity: 1;
}

@media (max-width: 768px) {
    .promo-content {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .promo-close {
        position: static;
        margin-top: 10px;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-image i {
        font-size: 8rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .advantages-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .datacenter-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .datacenter-stats {
        grid-template-columns: 1fr;
    }
    
    /* 移动端浮动按钮优化 */
    .float-contact {
        bottom: 20px;
        right: 20px;
    }
    
    .float-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .back-to-top {
        bottom: 80px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    

    
    .promo-banner {
        padding: 8px 0;
    }
    
    .promo-content {
        flex-direction: column;
        gap: 8px;
        font-size: 0.85rem;
    }
    
    .promo-btn {
        padding: 4px 12px;
        font-size: 0.8rem;
    }
}