* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    color: #fff;
    overflow-x: hidden;
}

header {
    text-align: center;
    padding: 100px 20px 80px;
    position: relative;
}

h1 {
    font-size: 3.5em;
    margin: 0;
    background: linear-gradient(45deg, #00ffaa, #00ccff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { filter: drop-shadow(0 0 10px #00ffaa); }
    to { filter: drop-shadow(0 0 20px #00ccff); }
}

h2 {
    font-size: 2em;
    color: #00ffaa;
    margin: 10px 0;
}

.subtitle {
    font-size: 1.4em;
    margin: 30px auto;
    opacity: 0.9;
    max-width: 600px;
    line-height: 1.6;
}

.stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    padding: 60px 20px;
    background: rgba(0, 0, 0, 0.3);
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3em;
    color: #00ffaa;
    font-weight: bold;
}

.stat-label {
    font-size: 1.1em;
    opacity: 0.8;
    margin-top: 10px;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 50px 20px;
    max-width: 1200px;
    margin: auto;
}

.card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 170, 0.2);
    border-radius: 16px;
    padding: 30px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 170, 0.1), transparent);
    transition: left 0.5s;
}

.card:hover::before {
    left: 100%;
}

.card:hover {
    transform: translateY(-5px);
    border-color: #00ffaa;
    box-shadow: 0 10px 30px rgba(0, 255, 170, 0.3);
}

.card h3 {
    color: #00ffaa;
    font-size: 1.5em;
    margin-bottom: 15px;
}

.card p {
    line-height: 1.6;
    opacity: 0.9;
}

.demo-section {
    max-width: 900px;
    margin: 60px auto;
    padding: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 255, 170, 0.2);
}

.demo-section h3 {
    color: #00ffaa;
    margin-bottom: 20px;
    font-size: 1.8em;
}

/* AI 对话样式 */
.ai-chat-section {
    background: rgba(255, 255, 255, 0.08);
}

.emotion-selector {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.emotion-selector label {
    font-weight: bold;
}

.emotion-selector select {
    flex: 1;
    padding: 12px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 1em;
}

.chat-container {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    padding: 20px;
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-message {
    margin-bottom: 15px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.message-content {
    padding: 15px 20px;
    border-radius: 12px;
    line-height: 1.6;
    max-width: 85%;
}

.user-message .message-content {
    background: linear-gradient(135deg, #00ffaa, #00cc88);
    color: #000;
    margin-left: auto;
    text-align: right;
}

.ai-message .message-content {
    background: rgba(255, 255, 255, 0.1);
    border-left: 3px solid #00ffaa;
}

.chat-input-area {
    display: flex;
    gap: 15px;
    align-items: flex-end;
}

#chatInput {
    flex: 1;
    padding: 15px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 1em;
    resize: vertical;
    font-family: inherit;
}

#chatInput:focus {
    outline: none;
    border-color: #00ffaa;
}

.send-btn {
    padding: 15px 30px;
    background: linear-gradient(45deg, #00ffaa, #00cc88);
    color: #000;
    border: none;
    border-radius: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.send-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(0, 255, 170, 0.4);
}

.send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 情绪按钮 */
.emotion-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin: 20px 0;
}

.emotion-btn {
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1em;
}

.emotion-btn:hover {
    background: rgba(0, 255, 170, 0.2);
    border-color: #00ffaa;
    transform: translateY(-2px);
}

.emotion-btn.active {
    background: #00ffaa;
    color: #000;
}

.action-btn {
    padding: 12px 30px;
    background: linear-gradient(45deg, #00ffaa, #00cc88);
    color: #000;
    border: none;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1em;
}

.action-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(0, 255, 170, 0.4);
}

.result-box {
    margin-top: 20px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    border-left: 4px solid #00ffaa;
    display: none;
    animation: fadeIn 0.3s ease;
}

.result-box.show {
    display: block;
}

.cta {
    text-align: center;
    padding: 80px 20px;
}

.cta h2 {
    margin-bottom: 30px;
    font-size: 2.5em;
}

.cta button {
    background: linear-gradient(45deg, #00ffaa, #00cc88);
    color: #000;
    border: none;
    padding: 18px 50px;
    font-size: 1.3em;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 255, 170, 0.4);
}

.cta button:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(0, 255, 170, 0.6);
}

footer {
    text-align: center;
    padding: 40px 20px;
    opacity: 0.7;
    font-size: 0.9em;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #00ffaa;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 响应式 */
@media (max-width: 768px) {
    h1 { font-size: 2.5em; }
    h2 { font-size: 1.5em; }
    .subtitle { font-size: 1.1em; }
    .features { grid-template-columns: 1fr; }
    .stats { gap: 30px; }
    .demo-section { padding: 30px 20px; }
    .emotion-selector { flex-direction: column; align-items: stretch; }
    .chat-input-area { flex-direction: column; }
}


/* Logo Container */
.logo-container {
    margin: 0 auto 20px;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(0, 255, 170, 0.3);
    transition: all 0.3s ease;
}

.logo-container:hover {
    transform: scale(1.05);
    border-color: rgba(0, 255, 170, 0.6);
    box-shadow: 0 0 30px rgba(0, 255, 170, 0.3);
}

#siteLogo {
    max-width: 100%;
    max-height: 100%;
    border-radius: 15px;
}

#defaultLogo {
    font-size: 4em;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Social Links */
.social-links {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-icon:hover {
    background: rgba(0, 255, 170, 0.2);
    border-color: #00ffaa;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 25px rgba(0, 255, 170, 0.3);
}

.social-icon svg {
    width: 24px;
    height: 24px;
}

/* Admin Link */
.admin-link {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    padding: 12px 20px;
    border-radius: 25px;
    color: #fff;
    text-decoration: none;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    font-size: 0.9em;
    z-index: 1000;
}

.admin-link:hover {
    background: rgba(0, 255, 170, 0.2);
    border-color: #00ffaa;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 255, 170, 0.3);
}


/* Token CTA Button */
.token-cta-btn {
    display: inline-block;
    padding: 18px 40px;
    background: linear-gradient(45deg, #ffd93d, #ff6b6b);
    color: #000;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.3em;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(255, 215, 61, 0.4);
    animation: pulse 2s ease-in-out infinite;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.token-cta-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(255, 215, 61, 0.6);
    background: linear-gradient(45deg, #ff6b6b, #ffd93d);
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 5px 20px rgba(255, 215, 61, 0.4);
    }
    50% {
        box-shadow: 0 5px 30px rgba(255, 215, 61, 0.8);
    }
}


/* Language Switcher */
.language-switcher {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    display: flex;
    gap: 5px;
    background: rgba(0, 0, 0, 0.5);
    padding: 5px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.lang-btn {
    padding: 8px 16px;
    background: transparent;
    color: #fff;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.9em;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.lang-btn.active {
    background: linear-gradient(45deg, #00ffaa, #00ccff);
    color: #000;
}
