/* ==========================================
   Vell - 公司主页样式
   风格：苹果风格 · 黑白配色 · 扁平化
   ========================================== */

/* ---------- 全局重置 ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', Arial, sans-serif;
    background: #ffffff;
    color: #1a1a1a;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ---------- 导航栏 ---------- */



.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.navbar:hover {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
    height: 64px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
/* Logo 链接 */
.nav-brand-link {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.nav-brand-link:hover .brand-name {
    color: #666;
}

.nav-brand-link:hover .brand-domain {
    color: #aaa;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.brand-name {
    color: #1a1a1a;
    transition: color 0.3s ease;
}

.brand-domain {
    color: #888;
    font-weight: 400;
    transition: color 0.3s ease;
}

.user-name-link {
    font-weight: 600;
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s ease;
    cursor: pointer;
}

.user-name-link:hover {
    color: #666;
    text-decoration: underline;
}

/* 用户信息链接（头像+姓名，整块可点击） */
.user-info-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #1a1a1a;
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.user-info-link:hover {
    background: rgba(0, 0, 0, 0.04);
}


.nav-menu {
    display: flex;
    align-items: center;
    gap: 24px;
    font-size: 14px;
}

.nav-menu a {
    color: #555;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #1a1a1a;
    transition: width 0.3s ease;
}

.nav-menu a:hover {
    color: #1a1a1a;
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-divider {
    color: #ddd;
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #1a1a1a;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.user-name {
    font-weight: 600;
    color: #1a1a1a;
}

.user-name-link {
    font-weight: 600;
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s ease;
    cursor: pointer;
}

.user-name-link:hover {
    color: #666;
    text-decoration: underline;
}
.btn-login {
    padding: 8px 20px;
    color: #1a1a1a;
    border: 1px solid #ddd;
    border-radius: 20px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn-login:hover {
    background: #1a1a1a;
    color: #fff;
    border-color: #1a1a1a;
}

.btn-login:hover::after {
    width: 0 !important;
}

.btn-register {
    padding: 8px 20px;
    background: #1a1a1a;
    color: #fff;
    border-radius: 20px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn-register:hover {
    background: #333;
    transform: scale(1.02);
}

.btn-register:hover::after {
    width: 0 !important;
}

.btn-logout-small {
    padding: 4px 14px;
    font-size: 12px;
    color: #888;
    border: 1px solid #ddd;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-logout-small:hover {
    background: #fee2e2;
    color: #dc2626;
    border-color: #dc2626;
}

/* ---------- Hero 区域 ---------- */
.hero {
    padding: 120px 32px 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0,0,0,0.02) 0%, transparent 70%);
    pointer-events: none;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    width: 100%;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: #f0f0f0;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    color: #555;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -2px;
    color: #1a1a1a;
    margin-bottom: 20px;
}

.hero-highlight {
    background: linear-gradient(135deg, #1a1a1a 0%, #666 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 20px;
    color: #888;
    line-height: 1.6;
    margin-bottom: 36px;
    max-width: 480px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-primary {
    padding: 14px 36px;
    background: #1a1a1a;
    color: #fff;
    border: none;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    display: inline-block;
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    background: #000;
}

.btn-secondary {
    padding: 14px 36px;
    color: #1a1a1a;
    border: 1.5px solid #ddd;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    display: inline-block;
    background: transparent;
}

.btn-secondary:hover {
    border-color: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

/* ---------- 3D魔方样式 ---------- */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.rubiks-cube-3d {
    width: 200px;
    height: 200px;
    position: relative;
    transform-style: preserve-3d;
    animation: cubeRotate 20s infinite linear;
}

.rubiks-cube-3d .face {
    position: absolute;
    width: 200px;
    height: 200px;
    display: grid;
    grid-template-rows: repeat(3, 1fr);
    gap: 4px;
    padding: 4px;
    background: rgba(30, 30, 30, 0.12);
    border-radius: 8px;
    backdrop-filter: blur(2px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: inset 0 0 40px rgba(255, 255, 255, 0.02);
}

.face-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
}

.cell {
    border-radius: 4px;
    transition: all 0.6s ease;
    box-shadow:
            inset -3px -3px 8px rgba(0, 0, 0, 0.08),
            inset 3px 3px 8px rgba(255, 255, 255, 0.15),
            0 1px 3px rgba(0, 0, 0, 0.04);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.cell::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 4px;
    bottom: 4px;
    background: linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.12) 0%,
            rgba(255, 255, 255, 0) 40%,
            rgba(0, 0, 0, 0.02) 60%,
            rgba(0, 0, 0, 0.06) 100%
    );
    border-radius: 3px;
    pointer-events: none;
}

.rubiks-cube-3d .front  { transform: translateZ(100px); }
.rubiks-cube-3d .back   { transform: rotateY(180deg) translateZ(100px); }
.rubiks-cube-3d .right  { transform: rotateY(90deg) translateZ(100px); }
.rubiks-cube-3d .left   { transform: rotateY(-90deg) translateZ(100px); }
.rubiks-cube-3d .top    { transform: rotateX(90deg) translateZ(100px); }
.rubiks-cube-3d .bottom { transform: rotateX(-90deg) translateZ(100px); }

.rubiks-cube-3d:hover {
    animation-play-state: paused;
}

.rubiks-cube-3d:hover .cell {
    box-shadow:
            inset -3px -3px 8px rgba(0, 0, 0, 0.12),
            inset 3px 3px 8px rgba(255, 255, 255, 0.2),
            0 2px 8px rgba(0, 0, 0, 0.06);
}

.rubiks-cube-3d:hover .face {
    background: rgba(30, 30, 30, 0.18);
    border-color: rgba(255, 255, 255, 0.1);
}

@keyframes cubeRotate {
    0% {
        transform: rotateX(-20deg) rotateY(0deg);
    }
    100% {
        transform: rotateX(-20deg) rotateY(360deg);
    }
}

/* ---------- 统计数字 ---------- */
.stats {
    padding: 80px 32px;
    background: #f8f8f8;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

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

.stat-number {
    font-size: 48px;
    font-weight: 700;
    color: #1a1a1a;
    display: block;
    letter-spacing: -1px;
}

.stat-number::after {
    content: '+';
    font-size: 28px;
    color: #888;
}

.stat-label {
    font-size: 15px;
    color: #888;
    margin-top: 4px;
}

/* ---------- 通用区域 ---------- */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
}

.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: #888;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.section-title {
    font-size: 40px;
    font-weight: 700;
    letter-spacing: -1.5px;
    color: #1a1a1a;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 18px;
    color: #888;
    max-width: 600px;
    margin: 16px auto 0;
}

/* ---------- 服务区域 ---------- */
.services {
    padding: 100px 0;
    background: #ffffff;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    padding: 40px 32px;
    background: #fafafa;
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid #f0f0f0;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.06);
    background: #ffffff;
    border-color: #ddd;
}

.service-icon {
    font-size: 40px;
    display: block;
    margin-bottom: 16px;
}

.service-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.service-card p {
    font-size: 15px;
    color: #888;
    line-height: 1.7;
    margin-bottom: 16px;
}

.service-link {
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-block;
}

.service-link:hover {
    transform: translateX(4px);
    color: #000;
}

/* ---------- 解决方案 ---------- */
.solutions {
    padding: 100px 0;
    background: #f8f8f8;
}

.solutions-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.solution-item {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    align-items: center;
    padding: 40px;
    background: #fff;
    border-radius: 16px;
    border: 1px solid #f0f0f0;
    transition: all 0.4s ease;
}

.solution-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.04);
    border-color: #ddd;
}

.solution-item.reverse {
    grid-template-columns: 2fr 1fr;
}

.solution-item.reverse .solution-image {
    order: 2;
}

.solution-item.reverse .solution-content {
    order: 1;
}

.solution-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.solution-emoji {
    font-size: 80px;
}

.solution-content h3 {
    font-size: 24px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.solution-content p {
    font-size: 16px;
    color: #888;
    line-height: 1.7;
}

/* ---------- 关于我们 ---------- */
.about {
    padding: 100px 0;
    background: #ffffff;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-description {
    font-size: 17px;
    color: #666;
    line-height: 1.8;
    margin: 20px 0 32px;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #555;
}

.feature-icon {
    color: #1a1a1a;
    font-weight: 700;
}

.about-card {
    display: grid;
    gap: 24px;
}

.about-card-content {
    padding: 32px;
    background: #f8f8f8;
    border-radius: 16px;
    border: 1px solid #f0f0f0;
    transition: all 0.4s ease;
}

.about-card-content:hover {
    background: #fff;
    border-color: #ddd;
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.04);
}

.about-card-icon {
    font-size: 24px;
    color: #1a1a1a;
    display: block;
    margin-bottom: 8px;
}

.about-card-content h4 {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.about-card-content p {
    font-size: 15px;
    color: #888;
}

/* ---------- 合作客户 ---------- */
.clients {
    padding: 80px 0;
    background: #f8f8f8;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 24px;
}

.client-item {
    padding: 24px;
    text-align: center;
    background: #fff;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    color: #555;
    border: 1px solid #f0f0f0;
    transition: all 0.4s ease;
}

.client-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.04);
    border-color: #ddd;
}

/* ---------- 联系我们 ---------- */
.contact {
    padding: 100px 0;
    background: #ffffff;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-description {
    font-size: 17px;
    color: #666;
    line-height: 1.8;
    margin: 20px 0 32px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: #555;
}

.contact-icon {
    font-size: 20px;
}

.contact-form {
    background: #f8f8f8;
    padding: 40px;
    border-radius: 16px;
    border: 1px solid #f0f0f0;
    transition: all 0.4s ease;
}

.contact-form:hover {
    background: #fff;
    border-color: #ddd;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.04);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s ease;
    background: #fff;
    margin-bottom: 16px;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #1a1a1a;
    box-shadow: 0 0 0 3px rgba(26, 26, 26, 0.06);
}

.contact-form textarea {
    resize: vertical;
    min-height: 100px;
}

.contact-form .btn-primary {
    width: 100%;
    text-align: center;
}

/* ---------- 页脚 ---------- */
.footer {
    background: #1a1a1a;
    color: #aaa;
    padding: 60px 32px 32px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-brand .brand-name {
    color: #fff;
}

.footer-brand .brand-domain {
    color: #666;
}

.footer-tagline {
    font-size: 14px;
    color: #666;
    margin-top: 8px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-column h4 {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
}

.footer-column a {
    display: block;
    color: #888;
    text-decoration: none;
    font-size: 14px;
    padding: 4px 0;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: #fff;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #666;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .clients-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        margin: 0 auto 24px;
    }

    .hero-actions {
        justify-content: center;
    }

    .rubiks-cube-3d {
        width: 140px;
        height: 140px;
    }

    .rubiks-cube-3d .face {
        width: 140px;
        height: 140px;
        gap: 3px;
        padding: 3px;
    }

    .face-row {
        gap: 3px;
    }

    .rubiks-cube-3d .front  { transform: translateZ(70px); }
    .rubiks-cube-3d .back   { transform: rotateY(180deg) translateZ(70px); }
    .rubiks-cube-3d .right  { transform: rotateY(90deg) translateZ(70px); }
    .rubiks-cube-3d .left   { transform: rotateY(-90deg) translateZ(70px); }
    .rubiks-cube-3d .top    { transform: rotateX(90deg) translateZ(70px); }
    .rubiks-cube-3d .bottom { transform: rotateX(-90deg) translateZ(70px); }

    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .stat-number {
        font-size: 36px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

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

    .solution-item,
    .solution-item.reverse {
        grid-template-columns: 1fr;
        padding: 24px;
    }

    .solution-item.reverse .solution-image {
        order: 1;
    }

    .solution-item.reverse .solution-content {
        order: 2;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .about-features {
        grid-template-columns: 1fr 1fr;
    }

    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 32px;
    }

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

    .nav-menu {
        gap: 12px;
        font-size: 13px;
    }

    .nav-menu a:not(.btn-login):not(.btn-register):not(.user-info-link) {
        display: none;
    }

    .nav-divider {
        display: none;
    }

    .user-info-link {
        font-size: 13px;
        padding: 2px 6px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }

    .rubiks-cube-3d {
        width: 120px;
        height: 120px;
    }

    .rubiks-cube-3d .face {
        width: 120px;
        height: 120px;
        gap: 2px;
        padding: 2px;
    }

    .face-row {
        gap: 2px;
    }

    .rubiks-cube-3d .front  { transform: translateZ(60px); }
    .rubiks-cube-3d .back   { transform: rotateY(180deg) translateZ(60px); }
    .rubiks-cube-3d .right  { transform: rotateY(90deg) translateZ(60px); }
    .rubiks-cube-3d .left   { transform: rotateY(-90deg) translateZ(60px); }
    .rubiks-cube-3d .top    { transform: rotateX(90deg) translateZ(60px); }
    .rubiks-cube-3d .bottom { transform: rotateX(-90deg) translateZ(60px); }

    .stats-container {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .stat-number {
        font-size: 28px;
    }

    .clients-grid {
        grid-template-columns: 1fr 1fr;
    }

    .about-features {
        grid-template-columns: 1fr;
    }

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

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
}