/* Tesla 风格配色 - 高级版 */
:root {
    --color-bg: #000000;
    --color-surface: #0a0a0a;
    --color-surface-elevated: #141414;
    --color-primary: #ffffff;
    --color-secondary: #9ca3af;
    --color-tertiary: #6b7280;
    --color-accent: #e82127;
    --color-accent-glow: rgba(232, 33, 39, 0.4);
    --color-border: #1f1f1f;
    --color-border-hover: #2d2d2d;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    background: radial-gradient(ellipse at top, #0a0a0a 0%, #000000 100%);
    color: var(--color-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* 背景光晕效果 */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle at 50% 50%,
        rgba(232, 33, 39, 0.03) 0%,
        transparent 50%
    );
    animation: bgPulse 15s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes bgPulse {
    0%, 100% { transform: scale(1) translate(0, 0); opacity: 0.3; }
    50% { transform: scale(1.1) translate(5%, 5%); opacity: 0.5; }
}

.container {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* 背景动画 - 增强版 */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.grid-lines {
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background-image: 
        linear-gradient(var(--color-border) 1px, transparent 1px),
        linear-gradient(90deg, var(--color-border) 1px, transparent 1px);
    background-size: 80px 80px;
    animation: gridMove 25s linear infinite;
    opacity: 0.2;
}

/* 添加动态光点 */
.grid-lines::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle, rgba(232, 33, 39, 0.1) 1px, transparent 1px);
    background-size: 80px 80px;
    animation: gridPulse 3s ease-in-out infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(80px, 80px); }
}

@keyframes gridPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

/* 主要内容 */
.content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    width: 100%;
    text-align: center;
}

/* Logo 区域 - 增强版 */
.logo-section {
    margin-bottom: 40px;
    animation: fadeInDown 1s ease-out;
}

.logo {
    width: 70px;
    height: 70px;
    margin: 0 auto 15px;
    color: var(--color-accent);
    filter: drop-shadow(0 0 20px var(--color-accent-glow));
    animation: logoFloat 3s ease-in-out infinite;
    position: relative;
}

.logo::before {
    content: '';
    position: absolute;
    inset: -10px;
    background: radial-gradient(circle, var(--color-accent-glow) 0%, transparent 70%);
    border-radius: 50%;
    animation: glowPulse 2s ease-in-out infinite;
    z-index: -1;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-10px) scale(1.05); }
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

.logo svg {
    width: 100%;
    height: 100%;
}

.site-title {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    background: linear-gradient(
        135deg,
        #ffffff 0%,
        #f0f0f0 25%,
        #e0e0e0 50%,
        #f0f0f0 75%,
        #ffffff 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s linear infinite;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
}

@keyframes shimmer {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

/* Hero 区域 - 增强版 */
.hero-section {
    margin-bottom: 50px;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    letter-spacing: -0.03em;
    background: linear-gradient(to bottom, #ffffff 0%, #a0a0a0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.hero-title::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    z-index: -1;
    background: linear-gradient(45deg, var(--color-accent) 0%, transparent 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.1;
    filter: blur(20px);
}

.divider {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, transparent 0%, var(--color-accent) 50%, transparent 100%);
    margin: 0 auto 20px;
    border-radius: 2px;
    box-shadow: 0 0 20px var(--color-accent-glow);
    animation: dividerExpand 2s ease-in-out infinite;
}

@keyframes dividerExpand {
    0%, 100% { width: 60px; opacity: 0.8; }
    50% { width: 80px; opacity: 1; }
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--color-secondary);
    font-weight: 300;
    letter-spacing: 0.02em;
}

/* 功能特点 - 高级玻璃态 */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.feature-card {
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 35px 25px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 4px 6px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transform-style: preserve-3d;
    perspective: 1000px;
}

/* 卡片光晕效果 */
.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%,
        var(--color-accent) 50%,
        transparent 100%
    );
    transform: translateX(-100%);
    transition: transform 0.8s ease;
}

.feature-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 1px;
    background: linear-gradient(135deg, 
        rgba(232, 33, 39, 0.2) 0%,
        transparent 50%,
        rgba(232, 33, 39, 0.1) 100%
    );
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--color-border-hover);
    background: rgba(20, 20, 20, 0.8);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(232, 33, 39, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.feature-card:hover::before {
    transform: translateX(100%);
}

.feature-card:hover::after {
    opacity: 1;
}

.feature-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 15px;
    color: var(--color-accent);
    filter: drop-shadow(0 0 10px var(--color-accent-glow));
    transition: var(--transition-bounce);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 0 20px var(--color-accent-glow));
}

.feature-icon svg {
    width: 100%;
    height: 100%;
}

.feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    font-weight: 600;
    transition: var(--transition);
}

.feature-card:hover h3 {
    color: var(--color-accent);
}

.feature-card p {
    color: var(--color-secondary);
    line-height: 1.7;
    font-size: 0.95rem;
    transition: var(--transition);
}

.feature-card:hover p {
    color: var(--color-primary);
}

/* 联系我们区域 - 玻璃态 */
.contact-section {
    background: rgba(20, 20, 20, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    padding: 45px 35px;
    margin-bottom: 40px;
    animation: fadeInUp 1s ease-out 0.6s both;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.contact-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(232, 33, 39, 0.05) 0%, transparent 70%);
    animation: rotateBg 20s linear infinite;
}

@keyframes rotateBg {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.contact-section h3 {
    font-size: 1.6rem;
    margin-bottom: 12px;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.contact-section > p {
    color: var(--color-secondary);
    margin-bottom: 25px;
    font-size: 1rem;
    position: relative;
    z-index: 1;
}

.email-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: linear-gradient(135deg, rgba(232, 33, 39, 0.1) 0%, rgba(232, 33, 39, 0.05) 100%);
    border: 2px solid var(--color-border);
    border-radius: 12px;
    color: var(--color-primary);
    font-size: 1.1rem;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    letter-spacing: 0.02em;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.email-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--color-accent) 0%, #c41e24 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.email-link:hover {
    border-color: var(--color-accent);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        0 10px 30px rgba(232, 33, 39, 0.3),
        0 0 0 1px var(--color-accent),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.email-link:hover::before {
    opacity: 0.1;
}

.email-link svg {
    width: 24px;
    height: 24px;
    color: var(--color-accent);
    filter: drop-shadow(0 0 5px var(--color-accent-glow));
    position: relative;
    z-index: 1;
    transition: var(--transition);
}

.email-link:hover svg {
    transform: scale(1.1);
}

.email-link span {
    position: relative;
    z-index: 1;
}

/* 页脚 - 增强版 */
.footer {
    padding: 30px 0 20px;
    border-top: 1px solid var(--color-border);
    animation: fadeIn 1s ease-out 0.8s both;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%,
        var(--color-accent) 50%,
        transparent 100%
    );
    opacity: 0.3;
}

.footer p {
    color: var(--color-tertiary);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-links a {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-secondary);
    background: rgba(20, 20, 20, 0.5);
    border: 1px solid var(--color-border);
    border-radius: 50%;
    transition: var(--transition-bounce);
    position: relative;
    overflow: hidden;
}

.social-links a::before {
    content: '';
    position: absolute;
    inset: -50%;
    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        var(--color-accent) 180deg,
        transparent 360deg
    );
    animation: rotate 3s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.social-links a::after {
    content: '';
    position: absolute;
    inset: 2px;
    background: var(--color-bg);
    border-radius: 50%;
    z-index: 0;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.social-links a:hover {
    color: var(--color-primary);
    border-color: var(--color-accent);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 20px rgba(232, 33, 39, 0.3);
}

.social-links a:hover::before {
    opacity: 1;
}

.social-links svg {
    width: 20px;
    height: 20px;
    position: relative;
    z-index: 1;
}

/* 动画 */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .logo-section {
        margin-bottom: 30px;
    }

    .logo {
        width: 60px;
        height: 60px;
    }

    .hero-section {
        margin-bottom: 35px;
    }

    .hero-title {
        font-size: 2.3rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .site-title {
        font-size: 1.8rem;
    }

    .features {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 35px;
    }

    .contact-section {
        padding: 35px 25px;
        margin-bottom: 30px;
    }

    .contact-section h3 {
        font-size: 1.4rem;
    }

    .email-link {
        font-size: 1rem;
        padding: 14px 26px;
        gap: 10px;
    }

    .email-link svg {
        width: 22px;
        height: 22px;
    }
}

@media (max-width: 480px) {
    .logo {
        width: 50px;
        height: 50px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .feature-card {
        padding: 25px 20px;
    }

    .email-link {
        font-size: 0.9rem;
        padding: 12px 20px;
    }

    .social-links {
        gap: 12px;
    }

    .social-links a {
        width: 38px;
        height: 38px;
    }
}

/* 性能优化 - 减少动画 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
