/* 基础样式重构 */
html, body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-family: "Segoe UI", Arial, sans-serif;
    background: linear-gradient(135deg, #0f1535 60%, #1ec6e6 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 页面包装器 */
.page-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 主要内容区域 */
.main-content {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    padding: 32px 16px 0 16px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* AI 标志容器 */
.ai-logo-wrapper {
    width: 160px;
    height: 160px;
    margin-bottom: 16px;
    background: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-logo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    animation: logo-animation 2.2s ease-in-out infinite alternate;
}

@keyframes logo-animation {
    0% {
        transform: translateY(0) scale(1);
        filter: drop-shadow(0 2px 8px #ffa20044);
    }
    50% {
        transform: translateY(-12px) scale(1.04);
        filter: drop-shadow(0 8px 18px #ffa20066);
    }
    100% {
        transform: translateY(0) scale(1);
        filter: drop-shadow(0 2px 8px #ffa20044);
    }
}

/* 页面标题样式 */
.page-header {
    width: 100%;
    text-align: left;
}

.primary-heading {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #ffa200;
    text-align: left;
    width: 100%;
}

.secondary-heading {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 24px;
    color: #fff;
    text-align: left;
    width: 100%;
    line-height: 1.2;
}

/* 信息面板 */
.info-panel {
    background: rgba(20, 30, 60, 0.95);
    border-radius: 18px;
    padding: 20px 18px;
    margin-bottom: 24px;
    width: 100%;
    box-sizing: border-box;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
}

.precision-display {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #fff;
}

.precision-display .percentage-value {
    color: #ffa200;
    font-weight: bold;
    font-size: 1.3rem;
}

.description-text {
    font-size: 1rem;
    color: #b8c6e0;
    margin-bottom: 6px;
}

.description-text .featured-number {
    color: #ffa200;
    font-weight: 500;
    text-decoration: underline;
    cursor: pointer;
}

/* 搜索表单 */
.search-form {
    width: 100%;
    margin-bottom: 18px;
}

.search-form input {
    width: 100%;
    padding: 14px 12px;
    border-radius: 8px;
    border: none;
    background: #232b45;
    color: #b8c6e0;
    font-size: 1rem;
    outline: none;
    margin-bottom: 0;
    box-sizing: border-box;
}

/* 操作按钮 */
.action-button {
    width: 100%;
    padding: 14px 0;
    border: none;
    border-radius: 24px;
    background: linear-gradient(90deg, #1ec6e6 0%, #25a4e9 100%);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 8px;
    box-shadow: 0 2px 8px rgba(30, 198, 230, 0.18);
    animation: button-pulse 1.8s ease-in-out infinite;
}

@keyframes button-pulse {
    0% {
        box-shadow: 0 2px 16px 0 rgba(30, 198, 230, 0.25),
            0 2px 8px rgba(30, 198, 230, 0.18);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 4px 32px 0 rgba(30, 198, 230, 0.38),
            0 2px 16px rgba(30, 198, 230, 0.22);
        transform: scale(1.04);
    }
    100% {
        box-shadow: 0 2px 16px 0 rgba(30, 198, 230, 0.25),
            0 2px 8px rgba(30, 198, 230, 0.18);
        transform: scale(1);
    }
}

/* 分析覆盖层 */
.analysis-overlay {
    display: none;
    position: fixed;
    top: 200px;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.7);
}

/* 进度部分样式 */
.progress-section {
    display: block;
}

.progress-container {
    background: rgb(5 16 26);
    border-radius: 12px;
    padding: 32px 18px;
    max-width: 340px;
    margin: 60px auto;
}

.progress-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.progress-title {
    font-size: 20px;
    font-weight: bold;
}

.progress-items {
    width: 100%;
}

.progress-item {
    margin-bottom: 16px;
}

.item-label {
    font-size: 15px;
}

.progress-track {
    background: #eee;
    border-radius: 8px;
    height: 16px;
}

.progress-fill {
    width: 0%;
    background: #00dcf4;
    height: 100%;
    border-radius: 8px;
}

/* 结果部分样式 */
.results-section {
    display: none;
}

.results-container {
    background: linear-gradient(135deg, #18213c 60%, #1ec6e6 100%);
    border-radius: 12px;
    padding: 64px 18px;
    max-width: 340px;
    margin: 60px auto;
    color: #fff;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
}

.results-header {
    margin-bottom: 18px;
}

.results-title {
    font-size: 18px;
    font-weight: bold;
}

.results-content {
    width: 100%;
}

.results-message {
    font-size: 15px;
    margin-bottom: 18px;
}

/* WhatsApp 按钮 */
.whatsapp-button {
    animation: whatsapp-pulse 1.6s ease-in-out infinite;
}

@keyframes whatsapp-pulse {
    0% {
        box-shadow: 0 2px 12px 0 #15a22333;
        transform: scale(1);
    }
    50% {
        box-shadow: 0 6px 24px 0 #15a22355;
        transform: scale(1.04);
    }
    100% {
        box-shadow: 0 2px 12px 0 #15a22333;
        transform: scale(1);
    }
}

/* 页面脚部 */
.page-footer {
    width: 100%;
    max-width: 400px;
    margin: 32px auto 0 auto;
    padding: 0 16px 24px 16px;
    box-sizing: border-box;
    text-align: center;
    font-size: 0.92rem;
    color: #b8c6e0;
}

/* Cookie 通知 */
#cookie-notification {
    display: none;
    align-items: center;
    justify-content: center;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    background: rgba(20, 30, 60, 0.98);
    color: #fff;
    padding: 14px 12px;
    font-size: 0.98rem;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.13);
}

#cookie-notification span {
    flex: 1;
}

#cookie-notification button {
    margin-left: 18px;
    padding: 7px 18px;
    border: none;
    border-radius: 16px;
    background: linear-gradient(90deg, #1ec6e6 0%, #3eeaff 100%);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}

/* 响应式设计 */
@media (max-width: 480px) {
    .main-content {
        padding: 18px 4px 0 4px;
    }

    .ai-logo-wrapper {
        width: 120px;
        height: 120px;
    }

    .primary-heading {
        font-size: 2rem;
        text-align: center;
        margin-bottom: 0;
    }

    .secondary-heading {
        font-size: 1.1rem;
        text-align: center;
    }
}

/* 页面特定样式 */
.section-highlight {
    background-color: #f8fff9;
    border-left: 4px solid #15a223;
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
}

.accordion {
    margin-bottom: 15px;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
}

.accordion-header {
    background-color: #f9f9f9;
    padding: 15px 20px;
    cursor: pointer;
    font-weight: 600;
    color: #333;
    border-bottom: 1px solid #eee;
    position: relative;
    transition: all 0.3s ease;
}

.accordion-header:hover {
    background-color: #f5f5f5;
}

.accordion-header:after {
    content: "+";
    position: absolute;
    right: 20px;
    font-size: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #15a223;
}

.accordion-content {
    padding: 0px 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-active .accordion-header:after {
    content: "-";
}

.accordion-active .accordion-content {
    padding: 15px 20px;
    max-height: 1000px;
}
