/* =====================================================
 * ECutPro - 首页样式（极简版）
 * 暗黑主题 + 简洁专业
 * ===================================================== */

/* ============= CSS 变量 ============= */
:root {
    --bg-dark: #1a1a1a;
    --bg-secondary: #2a2a2a;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-muted: #808080;
    --border-color: rgba(70, 70, 70, 0.4);
    --primary-color: #30C9B0;
    --primary-hover: #29B09B;
    --transition: all 0.3s ease;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* ============= 基础样式 ============= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, 'Segoe UI', 'Microsoft YaHei', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

/* ============= 容器 ============= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============= 顶部导航 ============= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

/* Logo样式 */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 30px;
}

.logo-image {
    height: 26px;
    width: auto;
    display: block;
}

/* SVG 文字动画 */
.logo-text-svg {
    display: flex;
    align-items: center;
}

.logo-text-svg svg {
    display: block;
}

.svg-path {
    stroke-dasharray: 2000;
    stroke-dashoffset: 2000;
    animation: draw 2s ease-out forwards;
}

@keyframes draw {
    to {
        stroke-dashoffset: 0;
    }
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
}

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

/* 导航下拉菜单 */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.nav-dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.nav-dropdown-trigger:hover {
    color: var(--text-primary);
}

.nav-dropdown-trigger i {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.nav-dropdown:hover .nav-dropdown-trigger i {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px 0;
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    transform: translateX(-50%) translateY(-10px);
    box-shadow: var(--shadow);
    z-index: 1000;
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    color: var(--text-secondary);
    font-size: 14px;
    transition: var(--transition);
    white-space: nowrap;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.dropdown-item i {
    font-size: 14px;
    width: 16px;
    text-align: center;
}

.dropdown-divider {
    height: 1px;
    margin: 8px 0;
    background: var(--border-color);
}

.dropdown-tip {
    padding: 10px 20px;
    color: var(--text-muted);
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: default;
    font-style: italic;
}

.dropdown-tip i {
    font-size: 14px;
    width: 16px;
    text-align: center;
    color: var(--text-muted);
}

/* ============= Hero 区 ============= */
.hero {
    padding: 120px 0 80px;
    text-align: center;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 24px;
    color: var(--text-secondary);
}

/* ============= 产品简介 ============= */
.intro {
    padding: 60px 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.intro-text {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 1000px;
    margin: 0 auto 16px;
}

/* ============= 核心功能 ============= */
.features {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.section-title {
    text-align: center;
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 60px;
}

.feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

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

.feature-item i {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-item h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
}

.feature-item p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ============= 底部 ============= */
.footer {
    padding: 60px 0 30px;
    border-top: 1px solid var(--border-color);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 200px;
    margin-bottom: 40px;
}

.footer-col {
    flex: 0 0 auto;
}

.footer-col h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-col a {
    display: block;
    padding: 8px 0;
    font-size: 14px;
    color: var(--text-muted);
}

.footer-col a:hover {
    color: var(--text-secondary);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.footer-bottom p {
    font-size: 14px;
    color: var(--text-muted);
}

/* ============= 右侧悬浮客服 ============= */
.customer-service {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 16px;
}

.cs-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.cs-button {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(48, 201, 176, 0.4);
    transition: all 0.3s ease;
}

.cs-button i {
    font-size: 28px;
    color: #fff;
}

.cs-button:hover {
    background: var(--primary-hover);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(48, 201, 176, 0.6);
}

.cs-label-text {
    font-size: 12px;
    color: var(--text-secondary);
    white-space: nowrap;
    user-select: none;
}

.cs-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateX(20px);
    transition: all 0.3s ease;
    min-width: 200px;
}

.cs-wrapper:hover ~ .cs-card,
.cs-card:hover {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.cs-qrcode {
    text-align: center;
    margin-bottom: 16px;
}

.cs-qrcode-img {
    width: 120px;
    height: 120px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid var(--border-color);
}

.cs-info {
    text-align: center;
}

.cs-label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.cs-number {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
    user-select: all;
}

.cs-tip {
    font-size: 12px;
    color: var(--text-muted);
}

/* ============= 响应式 ============= */
@media (max-width: 768px) {
    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .nav-links {
        gap: 16px;
        font-size: 13px;
    }

    .section-title {
        font-size: 24px;
    }

    .feature-list {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .customer-service {
        bottom: 20px;
        right: 20px;
    }

    .cs-button {
        width: 50px;
        height: 50px;
    }

    .cs-button i {
        font-size: 24px;
    }

    .cs-card {
        display: none;
    }
}

