/* ==================== 全局样式 ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0A1428;
    --bg-secondary: #0D1B2A;
    --bg-card: rgba(255, 255, 255, 0.03);
    --accent: #4ECDC4;
    --accent-blue: #1a73e8;
    --accent-light: #5EEAD4;
    --text-primary: #FFFFFF;
    --text-secondary: #B0B8C4;
    --text-muted: #8892A0;
    --btn-bg: #1a73e8;
    --btn-hover: #1557b0;
    --border-color: rgba(78, 205, 196, 0.15);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* 点阵背景 */
.dot-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(78, 205, 196, 0.08) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
    z-index: 0;
}

/* ==================== 导航栏 ==================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 24px;
    background: rgba(10, 20, 40, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.nav-btn {
    display: inline-block;
    padding: 8px 24px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    white-space: nowrap;
}

.nav-btn-outline {
    color: #fff;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.4);
}

.nav-btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.nav-btn-primary {
    color: #fff;
    background: var(--btn-bg);
    border: 1px solid transparent;
}

.nav-btn-primary:hover {
    background: var(--accent);
}

/* Language Switcher */
.lang-switcher {
    position: relative;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 4px;
    color: #fff;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
}

.lang-btn:hover {
    border-color: var(--accent);
    background: rgba(255,255,255,0.12);
}

.lang-arrow {
    transition: transform 0.3s;
}

.lang-btn.open .lang-arrow {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: rgba(10, 20, 40, 0.95);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    min-width: 130px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.25s ease;
    z-index: 1001;
}

.lang-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: block;
    width: 100%;
    padding: 10px 16px;
    background: none;
    border: none;
    color: #ccc;
    font-size: 13px;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.lang-option:hover {
    background: rgba(78,205,196,0.1);
    color: #fff;
}

.lang-option.active {
    color: var(--accent);
    background: rgba(78,205,196,0.08);
}

.hamburger {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: 0.3s;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 36px;
    width: auto;
}

/* 移动端菜单 */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
}

.mobile-menu.active {
    display: block;
}

.menu-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
}

.menu-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 280px;
    height: 100%;
    background: var(--bg-secondary);
    padding: 24px;
    transform: translateX(-100%);
    animation: slideIn 0.3s forwards;
}

@keyframes slideIn {
    to { transform: translateX(0); }
}

.menu-close {
    background: none;
    border: none;
    color: white;
    font-size: 32px;
    cursor: pointer;
    position: absolute;
    top: 16px;
    right: 16px;
}

.menu-links {
    margin-top: 60px;
}

.menu-links li {
    margin-bottom: 16px;
}

.menu-links a {
    font-size: 18px;
    color: var(--text-secondary);
    transition: color 0.3s;
}

.menu-links a:hover {
    color: var(--accent);
}

/* ==================== Hero 区域 ==================== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 100px 24px 60px;
    overflow: hidden;
    background: var(--bg-primary);
}

.hero-carousel {
    position: relative;
    width: 100%;
    max-width: 1100px;
    z-index: 1;
}

.carousel-track {
    position: relative;
    overflow: hidden;
}

.carousel-slide {
    display: none;
    animation: fadeIn 0.5s ease;
}

.carousel-slide.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-inner {
    display: flex;
    align-items: center;
    gap: 40px;
}

.hero-content {
    flex: 1;
    text-align: left;
}

.hero-image {
    flex-shrink: 0;
    width: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
}

.hero-title {
    font-size: 38px;
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: 2px;
    line-height: 1.3;
}

.hero-desc {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 32px;
}

.btn-primary {
    display: inline-block;
    padding: 12px 32px;
    background: var(--btn-bg);
    color: white;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    transition: background 0.3s, transform 0.2s;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--btn-hover);
    transform: translateY(-1px);
}

.btn-outline {
    display: inline-block;
    padding: 12px 32px;
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s;
    cursor: pointer;
}

.btn-outline:hover {
    background: rgba(78, 205, 196, 0.1);
}

.btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

/* 轮播控制 */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.3s;
    z-index: 10;
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.carousel-btn.prev {
    left: -50px;
}

.carousel-btn.next {
    right: -50px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.carousel-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: background 0.3s;
}

.carousel-dots .dot.active {
    background: var(--accent);
}

/* Hero 装饰 */
.hero-logo-graphic {
    margin-top: 40px;
    z-index: 1;
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ==================== 算豐優勢 ==================== */
.advantages-section {
    position: relative;
    padding: 80px 24px;
    overflow: hidden;
}

.section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 48px;
    position: relative;
    z-index: 1;
}

.section-subtitle {
    text-align: center;
    font-size: 16px;
    color: var(--accent);
    font-weight: 400;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.advantage-card {
    text-align: center;
    padding: 32px 20px;
    border-radius: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    transition: transform 0.3s, border-color 0.3s;
}

.advantage-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
}

.advantage-icon {
    margin-bottom: 16px;
}

.advantage-card h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--accent-light);
}

.advantage-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ==================== 五大服務板塊 ==================== */
.services-section {
    position: relative;
    padding: 80px 24px;
    overflow: hidden;
    background: var(--bg-secondary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.service-card {
    text-align: center;
    padding: 30px 20px;
    border-radius: 12px;
    background: rgba(38, 44, 58, 0.8);
    border: 1px solid var(--border-color);
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 8px 24px rgba(78, 205, 196, 0.1);
}

.service-icon {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 20px;
    flex-shrink: 0;
}

.service-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.service-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #fff;
}

.service-card p {
    font-size: 13px;
    color: rgb(162, 171, 189);
    line-height: 1.7;
    text-align: justify;
    flex: 1;
}

.service-arrow {
    display: inline-block;
    margin-top: 16px;
}

.service-arrow img {
    width: 35px;
    height: 35px;
    opacity: 0.6;
    transition: opacity 0.3s, transform 0.3s;
}

.service-arrow:hover img {
    opacity: 1;
    transform: translateX(3px);
}

/* ==================== 促销轮播 ==================== */
.promo-section {
    position: relative;
    padding: 80px 24px;
    overflow: hidden;
    background: var(--bg-secondary);
}

.promo-carousel {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    z-index: 1;
}

.promo-track {
    overflow: hidden;
}

.promo-slide {
    display: none;
    padding: 8px 15px 24px;
    animation: fadeIn 0.5s ease;
}

.promo-slide.active {
    display: block;
}

.promo-title {
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 12px;
}

.promo-subtitle {
    font-size: 18px;
    color: var(--accent);
    text-align: center;
    margin-bottom: 20px;
}

.promo-slide > p {
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.7;
}

.promo-features {
    margin: 24px 0;
}

.promo-features h6 {
    font-size: 16px;
    font-weight: 600;
    color: var(--accent-blue);
    margin-bottom: 12px;
    margin-top: 16px;
}

.promo-features ul {
    padding-left: 8px;
}

.promo-features li {
    color: var(--text-secondary);
    margin-bottom: 8px;
    line-height: 1.7;
    font-size: 14px;
}

.check {
    color: var(--accent);
    margin-right: 6px;
    font-weight: bold;
}

.check-green {
    color: #4CAF50;
    margin-right: 6px;
    font-weight: bold;
}

.promo-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 16px 0;
}

.highlight-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: var(--accent-blue);
    border: none;
    border-radius: 50%;
    font-size: 11px;
    color: #fff;
    text-align: center;
    line-height: 1.2;
}

.promo-urgency {
    color: #FF6B6B !important;
    font-weight: 500;
    margin: 20px 0 16px !important;
}

.promo-note {
    font-size: 12px;
    color: var(--text-muted) !important;
    margin-top: 16px !important;
}

.promo-slide .btn-primary {
    display: block;
    text-align: center;
    max-width: 400px;
    margin: 20px auto 0;
}

.promo-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 16px 0;
    justify-content: center;
}

/* ==================== 服务详情区域 ==================== */
.detail-section {
    position: relative;
    padding: 80px 24px;
    overflow: hidden;
}

.detail-section:nth-child(even) {
    background: var(--bg-secondary);
}

.detail-container {
    display: flex;
    align-items: center;
    gap: 60px;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.detail-container.reverse {
    flex-direction: row-reverse;
}

.detail-text {
    flex: 1;
}

.detail-text h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
}

.detail-text h5 {
    margin-bottom: 4px;
}

.detail-desc {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 24px;
}

.product-adv-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--accent-light);
    margin-bottom: 16px;
}

.advantage-list {
    margin-bottom: 24px;
}

.advantage-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.advantage-list li strong {
    color: var(--text-primary);
}

.detail-image {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 450px;
}

.detail-photo {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.ai-illustration,
.cloud-illustration,
.integration-illustration,
.device-illustration,
.chip-illustration {
    padding: 20px;
    border-radius: 16px;
    background: rgba(78, 205, 196, 0.03);
    border: 1px solid var(--border-color);
}

/* GPU晶片 白色背景区域 */
.detail-chip {
    background: #FFFFFF !important;
}

.detail-chip .dot-bg {
    background-image: radial-gradient(rgba(0, 0, 0, 0.05) 1px, transparent 1px);
}

.detail-chip .section-subtitle {
    color: var(--accent-blue);
}

.detail-chip h2 {
    color: #1a1a2e;
}

.detail-chip .detail-desc {
    color: #555;
}

.detail-chip .product-adv-title {
    color: var(--accent-blue);
}

.detail-chip .advantage-list li {
    color: #444;
}

.detail-chip .advantage-list li strong {
    color: #1a1a2e;
}

.detail-chip .check-green {
    color: #4CAF50;
}

.detail-chip .btn-outline {
    color: var(--accent-blue);
    border-color: var(--accent-blue);
}

.detail-chip .btn-outline:hover {
    background: rgba(26, 115, 232, 0.05);
}

/* ==================== 页脚 ==================== */
.footer {
    background: #060E1A;
    padding: 0 24px 24px;
    border-top: 1px solid var(--border-color);
}

.footer-banner {
    background: linear-gradient(135deg, #0d47a1, #1a73e8);
    margin: 0 -24px;
    padding: 40px 24px;
    margin-bottom: 40px;
}

.footer-banner-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    gap: 40px;
}

.footer-qr img {
    width: 120px;
    height: 120px;
    border-radius: 8px;
}

.footer-email {
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-company h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.footer-company p {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    gap: 40px;
}

.footer-link-col ul li {
    margin-bottom: 10px;
}

.footer-link-col a {
    font-size: 14px;
    color: var(--text-secondary);
    transition: color 0.3s;
}

.footer-link-col a:hover {
    color: var(--accent);
}

.footer-social h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 12px;
}

.footer-social p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.footer-social a {
    color: var(--accent);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: 24px auto 0;
}

.ssl-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-muted);
}

.copyright {
    font-size: 12px;
    color: var(--text-muted);
}

/* ==================== 浮动客服按钮 ==================== */
.float-cs {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(180deg, #1a73e8, #0d47a1);
    padding: 12px 8px;
    border-radius: 20px 0 0 20px;
    cursor: pointer;
    transition: padding-right 0.3s;
    box-shadow: -2px 0 12px rgba(0, 0, 0, 0.3);
}

.float-cs:hover {
    padding-right: 16px;
}

.cs-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.cs-text {
    writing-mode: vertical-rl;
    font-size: 13px;
    color: white;
    letter-spacing: 3px;
}

/* ==================== 响应式 ==================== */
@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .detail-container,
    .detail-container.reverse {
        flex-direction: column;
    }

    .detail-image {
        order: -1;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .carousel-btn.prev {
        left: 0;
    }

    .carousel-btn.next {
        right: 0;
    }

    .hero-inner {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        text-align: center;
    }

    .hero-image {
        width: 280px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 28px;
    }

    .section-title {
        font-size: 28px;
    }

    .nav-btn {
        padding: 5px 12px;
        font-size: 12px;
    }

    .nav-right {
        gap: 8px;
    }

    .lang-btn {
        padding: 4px 8px;
        font-size: 11px;
    }

    .navbar {
        padding: 12px 12px;
    }

    .advantages-grid {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .promo-title {
        font-size: 24px;
    }

    .detail-text h2 {
        font-size: 26px;
    }

    .footer-links {
        flex-direction: column;
        gap: 20px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .btn-group {
        flex-direction: column;
    }

    .btn-group a {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 24px;
    }

    .hero-desc {
        font-size: 14px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .promo-slide {
        padding: 24px 16px;
    }

    .nav-btn {
        padding: 4px 10px;
        font-size: 11px;
    }

    .nav-right {
        gap: 6px;
    }

    .lang-btn {
        padding: 4px 6px;
        font-size: 10px;
        gap: 3px;
    }

    .lang-arrow {
        width: 8px;
        height: 5px;
    }

    .navbar {
        padding: 10px 8px;
    }

    .logo-img {
        height: 28px;
    }
}
