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

body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部 */
.header {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    box-shadow: 0 2px 20px rgba(30, 58, 138, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
}

.logo i {
    margin-right: 10px;
    font-size: 1.8rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #93c5fd;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: 0.3s;
}

/* 英雄区域 */
.hero {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #60a5fa 100%);
    color: white;
    padding: 120px 0 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.highlight {
    color: #93c5fd;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 50px;
}

.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: white;
    color: #1e3a8a;
}

.btn-primary:hover {
    background: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #1e3a8a;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: #1e3a8a;
    border: 2px solid #1e3a8a;
}

.btn-outline:hover {
    background: #1e3a8a;
    color: white;
}

.hero-stats {
    display: flex;
    gap: 40px;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #93c5fd;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* 图表可视化 */
.hero-visual {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    color: #333;
}

.chart-container {
    width: 100%;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e5e7eb;
}

.chart-header h3 {
    color: #1e3a8a;
    font-size: 1.2rem;
}

.chart-controls {
    display: flex;
    gap: 10px;
}

.timeframe {
    padding: 5px 15px;
    border-radius: 20px;
    background: #f3f4f6;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.timeframe.active {
    background: #1e3a8a;
    color: white;
}

.chart-area {
    height: 200px;
    position: relative;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 10px;
    margin-bottom: 20px;
    overflow: hidden;
}

.chart-line {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6 0%, #60a5fa 100%);
    transform: translateY(-50%);
}

.chart-points {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.point {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #1e3a8a;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(30, 58, 138, 0.3);
}

.chart-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stock-name {
    font-weight: 600;
    color: #1e3a8a;
}

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

.price-change {
    font-size: 0.9rem;
    margin-left: 10px;
}

.price-change.positive {
    color: #10b981;
}

/* 区域通用样式 */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: #1e3a8a;
    margin-bottom: 15px;
}

.section-header p {
    font-size: 1.1rem;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
}

/* 功能区域 */
.features {
    padding: 100px 0;
    background: #f8fafc;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: white;
    font-size: 2rem;
}

.feature-card h3 {
    font-size: 1.4rem;
    color: #1e3a8a;
    margin-bottom: 15px;
}

.feature-card p {
    color: #6b7280;
    line-height: 1.7;
}

/* AI分析测试区域 */
.ai-test {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.test-container {
    max-width: 1000px;
    margin: 0 auto;
}

.test-input-section {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.input-group {
    margin-bottom: 30px;
}

.input-group label {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e3a8a;
    margin-bottom: 15px;
}

.input-wrapper {
    display: flex;
    gap: 15px;
    align-items: center;
}

.input-wrapper input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 1.1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.input-wrapper input:focus {
    outline: none;
    border-color: #1e3a8a;
}

.input-wrapper button {
    padding: 15px 25px;
    white-space: nowrap;
}

.popular-stocks p {
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 15px;
}

.stock-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.stock-tag {
    padding: 8px 16px;
    background: #f3f4f6;
    color: #1e3a8a;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.stock-tag:hover {
    background: #1e3a8a;
    color: white;
    transform: translateY(-2px);
}

.test-results-section {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    animation: slideInUp 0.6s ease;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.analysis-header {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    padding: 25px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.analysis-header h3 {
    font-size: 1.5rem;
    margin: 0;
}

.analysis-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.analysis-status i {
    color: #10b981;
}

.analysis-content {
    padding: 40px;
}

.stock-info-card {
    background: #f8fafc;
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 30px;
}

.stock-basic-info h4 {
    color: #1e3a8a;
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.stock-details {
    display: flex;
    gap: 20px;
    align-items: center;
}

.stock-code {
    background: #1e3a8a;
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-weight: 600;
}

.stock-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1e3a8a;
}

.price-change {
    font-size: 1.1rem;
    font-weight: 600;
    color: #10b981;
}

.analysis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.analysis-card {
    background: #f8fafc;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.analysis-card:hover {
    border-color: #1e3a8a;
    transform: translateY(-5px);
}

.analysis-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 1.5rem;
}

.analysis-card h4 {
    color: #1e3a8a;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.prediction-result {
    margin-bottom: 10px;
}

.prediction-price {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e3a8a;
}

.prediction-change {
    font-size: 1rem;
    color: #10b981;
    font-weight: 600;
}

.prediction-confidence {
    color: #6b7280;
    font-size: 0.9rem;
}

.risk-level {
    font-size: 1.3rem;
    font-weight: 700;
    color: #10b981;
    margin-bottom: 10px;
}

.risk-level.medium {
    color: #f59e0b;
}

.risk-level.high {
    color: #ef4444;
}

.risk-description {
    color: #6b7280;
    font-size: 0.9rem;
}

.recommendation {
    font-size: 1.3rem;
    font-weight: 700;
    color: #10b981;
    margin-bottom: 10px;
}

.recommendation.hold {
    color: #f59e0b;
}

.recommendation.sell {
    color: #ef4444;
}

.recommendation-reason {
    color: #6b7280;
    font-size: 0.9rem;
}

.analysis-details h4 {
    color: #1e3a8a;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.detail-tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 25px;
    background: #f3f4f6;
    padding: 5px;
    border-radius: 10px;
}

.tab-btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    background: transparent;
    color: #6b7280;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.tab-btn.active {
    background: white;
    color: #1e3a8a;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.tab-content {
    background: #f8fafc;
    padding: 25px;
    border-radius: 15px;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

.tab-panel ul {
    list-style: none;
    padding: 0;
}

.tab-panel li {
    padding: 10px 0;
    border-bottom: 1px solid #e5e7eb;
    color: #6b7280;
    font-size: 0.95rem;
}

.tab-panel li:last-child {
    border-bottom: none;
}

/* 使用方法区域 */
.how-it-works {
    padding: 100px 0;
    background: white;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content h3 {
    font-size: 1.3rem;
    color: #1e3a8a;
    margin-bottom: 10px;
}

.step-content p {
    color: #6b7280;
    line-height: 1.7;
}


/* LINE添加区域 */
.line-contact {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.line-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
}

.line-info {
    text-align: left;
}

.line-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #00c300 0%, #00a000 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    color: white;
    font-size: 2.5rem;
}

.line-info h2 {
    font-size: 2.5rem;
    color: #1e3a8a;
    margin-bottom: 20px;
    line-height: 1.3;
}

.line-info p {
    font-size: 1.1rem;
    color: #6b7280;
    margin-bottom: 40px;
    line-height: 1.7;
}

.line-benefits {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #6b7280;
    font-size: 1rem;
}

.benefit-item i {
    width: 20px;
    color: #00c300;
    font-size: 1.2rem;
}

.line-action {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.line-qr-section {
    margin-bottom: 30px;
}

.qr-code {
    width: 150px;
    height: 150px;
    background: #f3f4f6;
    border: 2px dashed #d1d5db;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.qr-placeholder {
    text-align: center;
    color: #9ca3af;
}

.qr-placeholder i {
    font-size: 3rem;
    margin-bottom: 10px;
}

.qr-placeholder p {
    font-size: 0.9rem;
    margin: 0;
}

.qr-description {
    color: #6b7280;
    font-size: 0.9rem;
    margin: 0;
}

.line-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

.btn-line {
    background: linear-gradient(135deg, #00c300 0%, #00a000 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.btn-line:hover {
    background: linear-gradient(135deg, #00a000 0%, #008000 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 195, 0, 0.3);
    color: white;
}

.line-id {
    background: #f8fafc;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
}

.line-id p {
    margin: 0;
    color: #6b7280;
    font-size: 0.9rem;
}

.line-id span {
    color: #00c300;
    font-weight: 600;
    font-family: monospace;
}

.line-features {
    background: white;
    padding: 50px 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.line-features h3 {
    text-align: center;
    font-size: 1.8rem;
    color: #1e3a8a;
    margin-bottom: 40px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-item {
    text-align: center;
    padding: 25px;
    background: #f8fafc;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #00c300 0%, #00a000 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 1.5rem;
}

.feature-item h4 {
    color: #1e3a8a;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.feature-item p {
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* 页脚 */
.footer {
    background: #1e3a8a;
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    margin-bottom: 20px;
    color: #93c5fd;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #374151;
    color: #cbd5e1;
}

.footer-bottom p {
    margin: 5px 0;
}

/* 免责条款样式（在footer-bottom内） */
.footer-bottom .disclaimer-text {
    font-size: 0.8rem;
    color: #93c5fd;
    line-height: 1.8;
    margin: 20px auto 10px;
    max-width: 900px;
    padding: 0 20px;
    opacity: 0.85;
    font-weight: 300;
    letter-spacing: 0.3px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-stats {
        justify-content: center;
        gap: 20px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .steps {
        grid-template-columns: 1fr;
    }
    
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    /* 移动端免责条款样式 */
    .footer-bottom .disclaimer-text {
        font-size: 0.7rem;
        padding: 0 15px;
        line-height: 1.6;
        margin: 15px auto 10px;
    }
    
    .input-wrapper {
        flex-direction: column;
        gap: 15px;
    }
    
    .input-wrapper button {
        width: 100%;
    }
    
    .stock-tags {
        justify-content: center;
    }
    
    .analysis-grid {
        grid-template-columns: 1fr;
    }
    
    .detail-tabs {
        flex-direction: column;
    }
    
    .tab-btn {
        text-align: center;
    }
    
    .line-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .line-info {
        text-align: center;
    }
    
    .line-buttons {
        flex-direction: column;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .btn {
        padding: 12px 25px;
        font-size: 1rem;
    }
    
    .hero-visual {
        padding: 20px;
    }
    
    .contact-form {
        padding: 25px;
    }
}

/* 动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card,
.step,
.pricing-card {
    animation: fadeInUp 0.6s ease forwards;
}

/* 滚动动画 */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.scroll-animate.animate {
    opacity: 1;
    transform: translateY(0);
}

/* 移动端固定底部LINE按钮 */
.mobile-line-fixed {
    display: none; /* 默认隐藏，仅在移动端显示 */
    position: fixed;
    bottom: 30px !important; /* 距离底部30px，往上移动 */
    left: 0;
    right: 0;
    z-index: 9999;
    padding: 0; /* 移除padding，避免视觉上的背景效果 */
    margin: 0;
    background: transparent !important; /* 强制透明背景 */
    background-color: transparent !important; /* 确保背景色透明 */
    box-shadow: none !important;
    border: none !important;
    border-top: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.mobile-line-btn {
    width: calc(100% - 40px); /* 留出左右边距 */
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 20px;
    margin: 15px 20px; /* 在按钮上设置margin而不是容器padding */
    font-size: 1.1rem;
    font-weight: 600;
    animation: blink 2s infinite; /* 闪烁动画 */
}

/* 闪烁动画效果 */
@keyframes blink {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 10px 25px rgba(0, 195, 0, 0.3);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
        box-shadow: 0 15px 35px rgba(0, 195, 0, 0.5);
    }
}

/* 移动端显示固定按钮 */
@media (max-width: 768px) {
    .mobile-line-fixed {
        display: block !important;
        bottom: 30px !important; /* 距离底部30px，往上移动 */
        background: transparent !important; /* 确保移动端也是透明 */
        background-color: transparent !important;
        background-image: none !important;
        box-shadow: none !important;
        border: none !important;
        border-top: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    /* 确保按钮本身有正确的样式 */
    .mobile-line-fixed .mobile-line-btn {
        margin: 15px 20px;
    }
}
