/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    overflow-x: hidden;
    background: linear-gradient(135deg, #1a4b47, #1e3a8a);
}

/* 视频背景 */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* 主容器 */
.container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.main-content {
    background: transparent;
    padding: 60px 40px;
    max-width: 600px;
    width: 100%;
    text-align: center;
    position: relative;
}


/* AI头像 */
.avatar-container {
    margin-bottom: 30px;
    position: relative;
}

.avatar {
    position: relative;
    display: inline-block;
}

.avatar-image {
    position: relative;
    z-index: 2;
}

.avatar-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(32, 178, 170, 0.4), transparent);
    border-radius: 50%;
    z-index: 1;
}



/* 标题区域 */
.title-section {
    margin-bottom: 25px;
}

.main-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}


.subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* 描述区域 */
.description {
    margin-bottom: 35px;
    padding: 0 20px;
}

.description p {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
    margin-bottom: 25px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: 12px;
    backdrop-filter: blur(5px);
}

/* 统计数据 */
.stats-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    background: rgba(0, 0, 0, 0.4);
    padding: 20px;
    border-radius: 16px;
    margin-top: 20px;
    backdrop-filter: blur(10px);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: #20b2aa;
    margin-bottom: 5px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.3);
}

/* 输入区域 */
.input-section {
    margin-bottom: 35px;
}

.input-container {
    position: relative;
    margin-bottom: 15px;
}

.input-container input {
    width: 100%;
    padding: 18px 50px 18px 20px;
    font-size: 1.1rem;
    border-radius: 12px;
    outline: none;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    font-family: 'Noto Sans JP', sans-serif;
    box-shadow: 0 4px 15px rgba(32, 178, 170, 0.1);
}

.input-container input:focus {
    box-shadow: 0 8px 25px rgba(32, 178, 170, 0.3);
    transform: translateY(-2px);
}

.input-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #20b2aa;
}


.example-codes {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.example-codes span {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.example-btn {
    padding: 6px 12px;
    border-radius: 6px;
    background: #f8f9fa;
    color: #20b2aa;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    font-family: 'Noto Sans JP', sans-serif;
}

.example-btn:hover {
    background: #20b2aa;
    color: white;
    transform: translateY(-1px);
}

/* 按钮区域 */
.button-section {
    margin-bottom: 35px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.primary-btn {
    background: linear-gradient(135deg, #20b2aa, #1e90ff);
    color: white;
    padding: 18px 40px;
    font-size: 1.1rem;
    font-weight: 500;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    font-family: 'Noto Sans JP', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(32, 178, 170, 0.4);
}

.primary-btn:active {
    transform: translateY(-1px);
}

.primary-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.primary-btn:hover::before {
    left: 100%;
}

.secondary-btn {
    background: transparent;
    color: #20b2aa;
    padding: 16px 30px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Noto Sans JP', sans-serif;
}

.secondary-btn:hover {
    background: #20b2aa;
    color: white;
    transform: translateY(-2px);
}

/* 加载动画 */
.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Line通知样式 */
.line-notice {
    text-align: center;
    padding: 30px;
}

.line-icon {
    margin-bottom: 20px;
}

.line-notice h2 {
    color: #1a365d;
    margin-bottom: 15px;
    font-size: 1.5rem;
    font-weight: 700;
}

.stock-info {
    color: #2c5282;
    margin-bottom: 20px;
    font-size: 1rem;
    font-weight: 600;
}

.notice-text {
    color: #2d3748;
    line-height: 1.6;
    margin-bottom: 25px;
    font-size: 1rem;
    font-weight: 500;
}

.line-button {
    margin-bottom: 25px;
}

.add-line-btn {
    background: linear-gradient(135deg, #00C300, #00B900);
    color: white;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Noto Sans JP', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 0 auto;
    border: none;
}

.line-icon-img {
    width: 24px;
    height: 24px;

}

.add-line-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 195, 0, 0.3);
}

.line-logo {
    font-weight: 800;
    font-size: 1.2rem;
}

.benefits {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
    background: rgba(32, 178, 170, 0.2);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(32, 178, 170, 0.3);
}

.benefit-item {
    color: #1a365d;
    font-size: 0.95rem;
    font-weight: 600;
}


/* 模态框 */
.result-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: linear-gradient(135deg, #e6f3ff, #cce7ff);
    border-radius: 16px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease-out;
    box-shadow: 0 20px 40px rgba(32, 178, 170, 0.3);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 1px solid #eee;
}

.modal-header h2 {
    margin: 0;
    color: #333;
    font-size: 1.5rem;
}

.close-btn {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #999;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    color: #666;
}

.modal-body {
    padding: 30px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .main-content {
        padding: 40px 25px;
        margin: 10px;
    }
    
    .main-title {
        font-size: 2rem;
    }
    
    .input-container input {
        padding: 16px 45px 16px 18px;
        font-size: 1rem;
    }
    
    .primary-btn {
        padding: 16px 30px;
        font-size: 1rem;
    }
    
    .features {
        gap: 20px;
    }
    
    .feature-item {
        flex-direction: row;
        gap: 12px;
    }
    
    .feature-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
        margin-bottom: 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
    
    .main-content {
        padding: 30px 20px;
    }
    
    .main-title {
        font-size: 1.8rem;
    }
    
    .button-section {
        gap: 12px;
    }
    
    .features {
        flex-direction: column;
        gap: 15px;
    }
}
