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

body {
    font-family: 'Arial', sans-serif;
    background: #1a1f2e;
    color: #ffffff;
    overflow-x: hidden;
    min-height: 100vh;
}

/* 动态背景效果 */
.dynamic-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1f2e 0%, #2d3748 25%, #1a1f2e 50%, #2d3748 75%, #1a1f2e 100%);
    background-size: 400% 400%;
    z-index: -2;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 浮动球体效果 */
.floating-orbs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 245, 255, 0.1) 0%, rgba(0, 245, 255, 0.05) 50%, transparent 100%);
    animation: float 20s infinite linear;
}

.orb:nth-child(1) {
    width: 200px;
    height: 200px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 25s;
}

.orb:nth-child(2) {
    width: 150px;
    height: 150px;
    top: 60%;
    left: 80%;
    animation-delay: -5s;
    animation-duration: 30s;
}

.orb:nth-child(3) {
    width: 100px;
    height: 100px;
    top: 80%;
    left: 20%;
    animation-delay: -10s;
    animation-duration: 20s;
}

.orb:nth-child(4) {
    width: 180px;
    height: 180px;
    top: 30%;
    left: 70%;
    animation-delay: -15s;
    animation-duration: 35s;
}

.orb:nth-child(5) {
    width: 120px;
    height: 120px;
    top: 70%;
    left: 50%;
    animation-delay: -20s;
    animation-duration: 28s;
}

@keyframes float {
    0% {
        transform: translateY(0px) translateX(0px) rotate(0deg);
        opacity: 0.3;
    }
    25% {
        transform: translateY(-20px) translateX(10px) rotate(90deg);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-10px) translateX(-15px) rotate(180deg);
        opacity: 0.4;
    }
    75% {
        transform: translateY(-30px) translateX(5px) rotate(270deg);
        opacity: 0.7;
    }
    100% {
        transform: translateY(0px) translateX(0px) rotate(360deg);
        opacity: 0.3;
    }
}

/* 主容器 - Glassmorphism效果 */
.main-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    z-index: 1;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3),
                0 0 0 1px rgba(0, 245, 255, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    margin-top: 4rem;
    animation: containerGlow 4s ease-in-out infinite alternate;
}

@keyframes containerGlow {
    0% {
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3),
                    0 0 0 1px rgba(0, 245, 255, 0.2),
                    inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }
    100% {
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3),
                    0 0 0 1px rgba(0, 245, 255, 0.4),
                    inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
}

/* AI头像容器 */
.ai-avatar-container {
    text-align: center;
    margin-bottom: 2rem;
}

/* Risk Warning Banner */
.risk-warning-banner {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 152, 0, 0.15);
    border: 2px solid #ff9800;
    border-radius: 12px;
    padding: 15px 20px;
    margin-bottom: 30px;
    animation: pulse-warning 2s ease-in-out infinite;
}

.risk-warning-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.risk-warning-content {
    text-align: left;
    font-size: 14px;
    line-height: 1.6;
    color: #fff;
}

.risk-warning-content strong {
    color: #ff9800;
    font-weight: 700;
}

@keyframes pulse-warning {
    0%, 100% {
        border-color: #ff9800;
        box-shadow: 0 0 10px rgba(255, 152, 0, 0.3);
    }
    50% {
        border-color: #ffb74d;
        box-shadow: 0 0 20px rgba(255, 152, 0, 0.5);
    }
}

@media (max-width: 768px) {
    .risk-warning-banner {
        flex-direction: column;
        text-align: center;
    }
    
    .risk-warning-content {
        text-align: center;
        font-size: 13px;
    }
}

.ai-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(45deg, #00f5ff, #4169e1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    position: relative;
    animation: avatarGlow 3s ease-in-out infinite;
}

.ai-avatar::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(45deg, #00f5ff, #4169e1, #00f5ff);
    border-radius: 50%;
    z-index: -1;
    opacity: 0.7;
    animation: spin 4s linear infinite;
}

.ai-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
}

@keyframes avatarGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(0, 245, 255, 0.5); }
    50% { box-shadow: 0 0 40px rgba(0, 245, 255, 0.8); }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 标题样式 */
.main-title {
    font-size: 3.5rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 1rem;
    line-height: 1.2;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.title-line-1 {
    background: linear-gradient(45deg, #ffe44d, #ff6b9d, #a855f7, #00f5ff, #ffe44d);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    animation: gradientText 3s ease infinite;
    text-shadow: 0 0 30px rgba(255, 228, 77, 0.3);
}

.title-line-2 {
    background: linear-gradient(45deg, #00f5ff, #4ecdc4, #45b7d1, #ff6b6b, #00f5ff);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    animation: gradientText 3s ease infinite 0.5s;
    text-shadow: 0 0 30px rgba(0, 245, 255, 0.3);
}

@keyframes gradientText {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.subtitle {
    font-size: 1.8rem;
    color: #00ff88;
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 600;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.description {
    font-size: 1.1rem;
    color: #b0b0b0;
    text-align: center;
    margin-bottom: 3rem;
    line-height: 1.6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.highlight {
    color: #ffe44d;
    font-weight: bold;
    transition: all 0.3s ease;
}

.highlight.updating {
    color: #00ff88;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
    transform: scale(1.05);
}

/* 核心FAQ部分样式 */
.core-faq-section {
    max-width: 800px;
    margin: 0 auto 3rem;
    padding: 0 1rem;
}

.faq-section-title {
    font-size: 2rem;
    color: #00f5ff;
    text-align: center;
    margin-bottom: 2rem;
    font-weight: bold;
}

.faq-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(0, 245, 255, 0.2);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.faq-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(0, 245, 255, 0.4);
    transform: translateY(-2px);
}

.faq-question {
    font-size: 1.2rem;
    color: #ffe44d;
    font-weight: bold;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.answer-text {
    font-size: 1rem;
    color: #d0d0d0;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.action-hint {
    background: rgba(0, 255, 136, 0.1);
    border-left: 3px solid #00ff88;
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #00ff88;
    line-height: 1.6;
}

/* 输入区域样式 */
.input-section {
    max-width: 600px;
    margin: 0 auto 3rem;
    padding: 0 1rem;
}

.stock-input {
    width: 100%;
    padding: 1.2rem 1.5rem;
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(0, 245, 255, 0.3);
    border-radius: 12px;
    color: #ffffff;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.stock-input:focus {
    outline: none;
    border-color: #00f5ff;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 20px rgba(0, 245, 255, 0.3);
}

.stock-input::placeholder {
    color: #808080;
}

.generate-button {
    display: block;
    width: 100%;
    padding: 1.2rem 2rem;
    font-size: 1.2rem;
    font-weight: bold;
    background: linear-gradient(45deg, #00f5ff, #4169e1);
    border: none;
    border-radius: 12px;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    text-align: center;
}

.generate-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 245, 255, 0.4);
}

.generate-button:active {
    transform: translateY(0);
}

.generate-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.generate-button:hover::before {
    width: 300px;
    height: 300px;
}

/* 数据卡片区域 */
.cards-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto 3rem;
    padding: 0 1rem;
}

.performance-card,
.stock-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(0, 245, 255, 0.2);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.performance-card:hover,
.stock-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(0, 245, 255, 0.4);
    transform: translateY(-3px);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 0.8rem;
}

.card-value {
    font-size: 2rem;
    font-weight: bold;
    color: #00f5ff;
    margin-bottom: 0.5rem;
}

.card-label {
    font-size: 1rem;
    color: #b0b0b0;
}

.stock-symbol {
    font-size: 1.8rem;
    font-weight: bold;
    color: #ffe44d;
    margin-bottom: 0.5rem;
}

.stock-name {
    font-size: 1rem;
    color: #b0b0b0;
    margin-bottom: 0.8rem;
}

.stock-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: #00ff88;
    margin-bottom: 0.3rem;
}

.price-change {
    font-size: 1rem;
    font-weight: 600;
}

.price-change.positive {
    color: #00ff88;
}

.price-change.negative {
    color: #ff6b6b;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-container {
    background: rgba(26, 31, 46, 0.95);
    border: 1px solid rgba(0, 245, 255, 0.3);
    border-radius: 24px;
    padding: 2.5rem;
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.progress-title,
.completion-title {
    font-size: 1.8rem;
    color: #00f5ff;
    margin-bottom: 2rem;
    font-weight: bold;
}

.completion-subtitle {
    font-size: 1.1rem;
    color: #b0b0b0;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.whatsapp-button {
    background: linear-gradient(45deg, #25D366, #128C7E);
    color: white;
    border: none;
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.whatsapp-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.progress-bar-container {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #00f5ff, #4169e1);
    width: 0%;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 1rem;
    color: #b0b0b0;
    margin-top: 0.5rem;
}

/* 页脚导航样式 */
.footer-nav-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.95) 0%, rgba(10,10,30,0.98) 100%);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255,228,77,0.3);
    padding: 1rem 0;
    z-index: 1000;
    box-shadow: 0 -2px 20px rgba(255,228,77,0.1);
}

.footer-nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.footer-nav-links a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.footer-nav-links a:hover {
    color: #FFE44D;
    text-shadow: 0 0 10px rgba(255,228,77,0.5);
}

.footer-nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #FFE44D, transparent);
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

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

.footer-nav-links a.active {
    color: #FFE44D;
    font-weight: 600;
}

/* 为页脚导航留出空间 */
body {
    padding-bottom: 80px;
}

/* Mobile optimization - Tablets and large phones */
@media (max-width: 768px) {
    .main-container {
        padding: 1.5rem 1rem;
        margin-top: 2rem;
        border-radius: 20px;
        /* Performance optimization: disable blur on mobile */
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        background: rgba(26, 31, 46, 0.95) !important;
    }

    .main-title {
        font-size: 2.2rem;
    }

    .title-line-1,
    .title-line-2 {
        font-size: 2.2rem;
    }

    .subtitle {
        font-size: 1.3rem;
    }

    .description {
        font-size: 1rem;
    }

    .cards-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .ai-avatar {
        width: 100px;
        height: 100px;
    }

    .ai-avatar img {
        width: 70px;
        height: 70px;
    }

    /* Performance optimization: reduce orbs on mobile */
    .floating-orbs {
        animation-play-state: paused;
    }

    .orb:nth-child(1) {
        width: 120px;
        height: 120px;
        opacity: 0.5;
    }

    .orb:nth-child(2) {
        width: 100px;
        height: 100px;
        opacity: 0.5;
    }

    /* 页脚导航移动端优化 */
    .footer-nav-links {
        gap: 1rem;
        font-size: 0.9rem;
    }

    .footer-nav-links a {
        font-size: 0.9rem;
    }

    .footer-nav-bar {
        padding: 1rem 0.5rem;
    }
}

/* Mobile optimization - Small phones */
@media (max-width: 480px) {
    body {
        font-size: 16px;
    }

    .main-container {
        padding: 1.2rem 0.8rem;
        margin-top: 1.5rem;
        /* Performance optimization: disable expensive CSS on small phones */
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        background: rgba(26, 31, 46, 0.95) !important;
        animation: none !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
    }

    .main-title {
        font-size: 1.8rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }

    .title-line-1,
    .title-line-2 {
        font-size: 1.8rem;
    }

    .subtitle {
        font-size: 1.1rem;
        line-height: 1.5;
        margin-bottom: 1.2rem;
    }

    .description {
        font-size: 0.95rem;
        padding: 0 0.5rem;
        line-height: 1.7;
    }

    .input-section {
        padding: 0 0.5rem;
    }

    .stock-input {
        font-size: 1rem;
        padding: 1rem 1.1rem;
        border-radius: 10px;
    }

    .generate-button {
        font-size: 1.05rem;
        padding: 1.1rem 1.5rem;
        border-radius: 10px;
    }

    .cards-row {
        grid-template-columns: 1fr;
        padding: 0 0.5rem;
        gap: 1rem;
    }

    .performance-card,
    .stock-card {
        padding: 1.2rem 1rem;
        border-radius: 12px;
        min-height: 120px;
    }

    .card-icon {
        font-size: 2rem;
        margin-bottom: 0.6rem;
    }

    .card-value {
        font-size: 1.6rem;
        margin-bottom: 0.4rem;
    }

    .card-label {
        font-size: 0.9rem;
    }

    .stock-symbol {
        font-size: 1.4rem;
    }

    .stock-name {
        font-size: 0.85rem;
    }

    .stock-price {
        font-size: 1.2rem;
    }

    .price-change {
        font-size: 0.9rem;
    }

    .ai-avatar {
        width: 90px;
        height: 90px;
        margin-bottom: 1rem;
    }

    .ai-avatar img {
        width: 60px;
        height: 60px;
    }

    /* 核心FAQ移动端优化 - 增强可读性 */
    .core-faq-section {
        padding: 0 0.5rem;
        margin-bottom: 2rem;
    }

    .faq-section-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
        line-height: 1.3;
    }

    .faq-item {
        padding: 1.2rem 1rem;
        margin-bottom: 1.2rem;
        border-radius: 14px;
    }

    .faq-question {
        font-size: 1.05rem;
        margin-bottom: 0.9rem;
        line-height: 1.5;
    }

    .answer-text {
        font-size: 0.95rem;
        margin-bottom: 0.9rem;
        line-height: 1.8;
    }

    .action-hint {
        font-size: 0.9rem;
        padding: 0.9rem 0.8rem;
        line-height: 1.7;
        border-radius: 8px;
    }

    /* 模态框移动端优化 */
    .modal-container {
        padding: 2rem 1.5rem;
        max-width: 92%;
        border-radius: 20px;
    }

    .progress-title,
    .completion-title {
        font-size: 1.4rem;
        line-height: 1.4;
        margin-bottom: 1.5rem;
    }

    .completion-subtitle {
        font-size: 1rem;
        line-height: 1.7;
        margin-bottom: 1.8rem;
    }

    .whatsapp-button {
        font-size: 1.05rem;
        padding: 1.1rem 2rem;
        border-radius: 12px;
    }

    .progress-text {
        font-size: 0.95rem;
        line-height: 1.5;
        margin-top: 1rem;
    }

    /* 页脚导航移动端优化 */
    .footer-nav-links {
        gap: 0.8rem;
        font-size: 0.85rem;
    }

    .footer-nav-links a {
        font-size: 0.85rem;
        padding: 0.3rem 0;
    }

    .footer-nav-bar {
        padding: 0.8rem 0.5rem;
    }
}
