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

:root {
    --primary-color: #4169E1;
    --secondary-color: #9370DB;
    --accent-color: #FF69B4;
    --text-color: #2C3E50;
    --background-color: #FFFFFF;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    color: var(--text-color);
}

/* 主要内容区样式 */
.hero {
    min-height: calc(100vh - 60px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    margin-top: 60px;
}

/* AI图标样式 */
.ai-avatar {
    flex: 1.2;
    max-width: 500px;
    position: relative;
    padding: 2rem;
    margin-left: -2rem;
    filter: drop-shadow(0 0 40px rgba(67,97,238,0.2));
}

.ai-avatar svg {
    width: 100%;
    height: auto;
    transform-origin: center;
    animation: floatEffect 6s ease-in-out infinite;
    border-radius: 50%;
    overflow: visible;
}

/* AI文字样式 */
.ai-text {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
    animation: textPulse 3s ease-in-out infinite;
    filter: drop-shadow(0 0 8px rgba(247,37,133,0.3));
}

.sub-text {
    opacity: 0.9;
    letter-spacing: 1px;
    animation: textPulse 3s ease-in-out infinite;
}

.tech-lines path {
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ai-decorations path {
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 0 2px rgba(67,97,238,0.3));
}

@keyframes textPulse {
    0% {
        opacity: 0.8;
        transform: scale(1);
        filter: drop-shadow(0 0 8px rgba(247,37,133,0.2));
    }
    50% {
        opacity: 1;
        transform: scale(1.02);
        filter: drop-shadow(0 0 12px rgba(247,37,133,0.4));
    }
    100% {
        opacity: 0.8;
        transform: scale(1);
        filter: drop-shadow(0 0 8px rgba(247,37,133,0.2));
    }
}

@keyframes floatEffect {
    0%, 100% {
        transform: translateY(0);
        filter: drop-shadow(0 0 40px rgba(67,97,238,0.2));
    }
    50% {
        transform: translateY(-5px);
        filter: drop-shadow(0 0 50px rgba(67,97,238,0.3));
    }
}

/* 流动线条样式 */
.flow-line {
    stroke: url(#line-gradient);
    stroke-width: 3;
    fill: none;
    stroke-linecap: round;
    animation: flowAnimation 3s ease-in-out infinite;
    opacity: 0.6;
}

.flow-line:nth-child(2) {
    animation-delay: -1.5s;
}

@keyframes flowAnimation {
    0% {
        stroke-dasharray: 300;
        stroke-dashoffset: 300;
        opacity: 0.3;
    }
    50% {
        opacity: 0.8;
    }
    100% {
        stroke-dasharray: 300;
        stroke-dashoffset: -300;
        opacity: 0.3;
    }
}

/* 文字内容样式 */
.text-content {
    flex: 1;
    max-width: 500px;
    padding-right: 2rem;
}

.gradient-text {
    font-size: 3.2rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, 
        var(--primary-color), 
        var(--secondary-color), 
        var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 200%;
    animation: gradientAnimation 6s ease infinite, textBreath 3s ease-in-out infinite;
}

@keyframes textBreath {
    0% {
        opacity: 0.9;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.02);
    }
    100% {
        opacity: 0.9;
        transform: scale(1);
    }
}

.subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* 特性列表样式 */
.feature-list {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: nowrap;
    justify-content: flex-start;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: rgba(140, 67, 255, 0.05);
    border-radius: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.feature-item:hover {
    background: rgba(140, 67, 255, 0.1);
    transform: translateY(-2px);
}

.feature-icon {
    font-size: 1.5rem;
}

.feature-text {
    font-size: 1rem;
    color: var(--text-color);
}

/* 导航栏样式 */
.nav-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

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

.nav-link:hover {
    color: #4361EE;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #4361EE;
    transition: width 0.3s ease;
}

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

.nav-link.admin-link {
    color: #4361EE;
    border: 2px solid #4361EE;
    border-radius: 6px;
    padding: 0.5rem 1.2rem;
    margin-left: 1rem;
}

.nav-link.admin-link:hover {
    background: #4361EE;
    color: white;
}

.nav-link.admin-link::after {
    display: none;
}

/* 移动端导航栏样式 */
@media (max-width: 768px) {
    .nav-bar {
        padding: 1rem;
    }

    .nav-toggle {
        display: block;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0.5rem;
        margin-right: 1rem;
    }

    .nav-toggle span {
        display: block;
        width: 25px;
        height: 2px;
        background: #333;
        margin: 5px 0;
        transition: 0.3s;
    }

    .nav-links {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 60px);
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        padding: 2rem;
        transition: 0.3s;
        gap: 1.5rem;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-link {
        font-size: 1.2rem;
    }

    .nav-link.admin-link {
        margin: 1rem 0 0 0;
        text-align: center;
        width: fit-content;
    }

    .feature-list {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 1rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
    }

    .feature-list::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Edge */
    }

    .feature-item {
        flex-shrink: 0;
    }
}

/* 登录模态框样式 */
.login-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.login-content {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-content h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-color);
    font-size: 1.8rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(45, 90, 240, 0.1);
}

.login-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(45, 90, 240, 0.3);
}

.decorative-line {
    stroke: url(#ai-gradient);
    stroke-width: 2;
    fill: none;
    opacity: 0.8;
} 