/* ========================================
   模态弹窗式布局 - 现代极简风格
   特点：主页简洁 + 弹窗展示详细信息
   ======================================== */

/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);
    color: #1f2937;
    line-height: 1.6;
    min-height: 100vh;
}

/* ========================================
   页面容器
   ======================================== */
.page-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* ========================================
   头部区域
   ======================================== */
.site-header {
    text-align: center;
    margin-bottom: 50px;
    animation: fadeInDown 0.8s ease-out;
}

.header-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    color: white;
}

.site-title {
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.site-subtitle {
    font-size: 1.2em;
    margin-bottom: 20px;
    opacity: 0.95;
}

.header-tags {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.header-tags .tag {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9em;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.header-tags .tag:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* ========================================
   主要内容区
   ======================================== */
.main-content {
    animation: fadeInUp 0.8s ease-out;
}

/* 分析工具卡片 */
.analysis-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.analysis-card:hover {
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

.card-header {
    text-align: center;
    margin-bottom: 30px;
}

.card-header h2 {
    font-size: 2em;
    color: #2563eb;
    margin-bottom: 10px;
}

.card-header p {
    color: #6b7280;
    font-size: 1.05em;
}

.card-body {
    max-width: 600px;
    margin: 0 auto;
}

.input-wrapper {
    position: relative;
    margin-bottom: 20px;
}

.phone-input {
    width: 100%;
    padding: 18px 120px 18px 20px;
    font-size: 1.1em;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    transition: all 0.3s ease;
    outline: none;
}

.phone-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.input-status {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    padding: 6px 15px;
    border-radius: 20px;
    background: #f3f4f6;
    font-size: 0.85em;
    font-weight: 500;
    color: #9ca3af;
    transition: all 0.3s ease;
}

.analyze-btn {
    width: 100%;
    padding: 18px;
    font-size: 1.15em;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.analyze-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.analyze-btn:active {
    transform: translateY(0);
}

.btn-icon {
    font-size: 1.2em;
}

.card-footer {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid #e5e7eb;
}

.feature-tags {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.feature-tag {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.9em;
    color: #4b5563;
    font-weight: 500;
    transition: all 0.3s ease;
}

.feature-tag:hover {
    background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
    transform: translateY(-2px);
}

/* ========================================
   靓号广告横幅
   ======================================== */
.premium-banner {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border-radius: 20px;
    padding: 30px 40px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.3);
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.banner-icon {
    font-size: 3em;
    animation: bounce 2s ease-in-out infinite;
}

.banner-text {
    flex: 1;
    color: white;
}

.banner-text h3 {
    font-size: 1.5em;
    margin-bottom: 5px;
}

.banner-text p {
    opacity: 0.95;
    font-size: 1.05em;
}

.banner-btn {
    background: white;
    color: #d97706;
    padding: 14px 30px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05em;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.banner-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.banner-btn .arrow {
    font-size: 1.2em;
    transition: transform 0.3s ease;
}

.banner-btn:hover .arrow {
    transform: translateX(5px);
}

/* ========================================
   信息卡片网格
   ======================================== */
.info-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.info-card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    animation: fadeInUp 0.8s ease-out both;
}

.info-card:nth-child(1) {
    animation-delay: 0.3s;
}

.info-card:nth-child(2) {
    animation-delay: 0.4s;
}

.info-card:nth-child(3) {
    animation-delay: 0.5s;
}

.info-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.info-card-icon {
    font-size: 3.5em;
    margin-bottom: 15px;
    animation: float 3s ease-in-out infinite;
}

.info-card:nth-child(2) .info-card-icon {
    animation-delay: 1s;
}

.info-card:nth-child(3) .info-card-icon {
    animation-delay: 2s;
}

.info-card-title {
    font-size: 1.4em;
    color: #1f2937;
    margin-bottom: 10px;
}

.info-card-desc {
    color: #6b7280;
    margin-bottom: 20px;
    font-size: 0.95em;
}

.info-card-btn {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 10px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.info-card-btn:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.info-card-btn .btn-arrow {
    transition: transform 0.3s ease;
}

.info-card-btn:hover .btn-arrow {
    transform: translateX(5px);
}

/* ========================================
   页脚
   ======================================== */
.site-footer {
    text-align: center;
    padding: 30px 20px;
    color: #6b7280;
    margin-top: 50px;
    border-top: 1px solid #e5e7eb;
}

.footer-note {
    margin-top: 10px;
    font-size: 0.9em;
    color: #9ca3af;
}

/* ========================================
   模态弹窗
   ======================================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    animation: fadeIn 0.3s ease-out;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease-out;
}

.modal-container {
    position: relative;
    background: white;
    border-radius: 20px;
    max-width: 800px;
    width: 90%;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: zoomIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
}

.modal-header {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.modal-header h2 {
    font-size: 1.8em;
    margin: 0;
}

.modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 2em;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    line-height: 1;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.modal-body {
    padding: 30px;
    overflow-y: auto;
    flex: 1;
}

.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: #f3f4f6;
}

.modal-body::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* 模态弹窗内容区块 */
.modal-section {
    margin-bottom: 35px;
}

.modal-section:last-child {
    margin-bottom: 0;
}

.modal-section h3 {
    color: #1f2937;
    font-size: 1.4em;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #2563eb;
    display: inline-block;
}

.modal-section p {
    color: #4b5563;
    line-height: 1.8;
    margin-bottom: 15px;
}

.modal-section ul {
    list-style: none;
    padding-left: 0;
}

.modal-section li {
    color: #4b5563;
    line-height: 1.8;
    margin-bottom: 12px;
    padding-left: 25px;
    position: relative;
}

.modal-section li::before {
    content: "•";
    color: #2563eb;
    font-size: 1.5em;
    position: absolute;
    left: 0;
    top: -2px;
}

/* 价值观网格 */
.value-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.value-item {
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    padding: 25px 20px;
    border-radius: 12px;
    text-align: center;
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
}

.value-item:hover {
    border-color: #2563eb;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.1);
}

.value-icon {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.value-item h4 {
    color: #1f2937;
    font-size: 1.1em;
    margin-bottom: 8px;
}

.value-item p {
    color: #6b7280;
    font-size: 0.9em;
    margin: 0;
}

/* 特性列表 */
.feature-list {
    background: #f9fafb;
    padding: 20px 25px;
    border-radius: 12px;
    border-left: 4px solid #2563eb;
}

.feature-list li {
    margin-bottom: 15px;
}

.feature-list li:last-child {
    margin-bottom: 0;
}

/* 流程步骤 */
.flow-steps {
    margin-top: 20px;
}

.flow-step {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 25px;
    padding: 20px;
    background: #f9fafb;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.flow-step:hover {
    background: #f3f4f6;
    transform: translateX(5px);
}

.step-number {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content h4 {
    color: #1f2937;
    font-size: 1.2em;
    margin-bottom: 8px;
}

.step-content p {
    color: #6b7280;
    margin: 0;
}

/* 评分维度 */
.dimension-list {
    margin-top: 20px;
}

.dimension-item {
    margin-bottom: 25px;
    padding: 20px;
    background: #f9fafb;
    border-radius: 12px;
}

.dimension-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.dimension-name {
    font-weight: 600;
    color: #1f2937;
    font-size: 1.1em;
}

.dimension-weight {
    background: #2563eb;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 600;
}

.dimension-bar {
    height: 10px;
    background: #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.dimension-fill {
    height: 100%;
    background: linear-gradient(90deg, #2563eb 0%, #60a5fa 100%);
    border-radius: 10px;
    transition: width 0.5s ease;
}

.dimension-desc {
    color: #6b7280;
    font-size: 0.95em;
    margin: 0;
}

/* 算法说明框 */
.algorithm-box {
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    padding: 25px;
    border-radius: 12px;
    border: 2px solid #e5e7eb;
    margin-top: 20px;
}

.algorithm-box h4 {
    color: #1f2937;
    font-size: 1.1em;
    margin: 20px 0 10px 0;
}

.algorithm-box h4:first-child {
    margin-top: 0;
}

.algorithm-box p {
    color: #4b5563;
    margin-bottom: 10px;
}

.algorithm-box ul {
    margin-left: 0;
    margin-bottom: 15px;
}

.algorithm-box li {
    color: #4b5563;
    margin-bottom: 8px;
}

.formula {
    background: #2563eb;
    color: white;
    padding: 15px;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-weight: 600;
    margin-top: 15px !important;
}

/* 提示框 */
.note-box {
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
    padding: 15px 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.note-box p {
    color: #78350f;
    margin: 0;
}

/* 警告框容器 */
.warning-boxes {
    margin-top: 20px;
}

.warning-box {
    display: flex;
    gap: 15px;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    border-left: 4px solid;
}

.warning-red {
    background: #fef2f2;
    border-color: #ef4444;
}

.warning-box .warning-icon {
    font-size: 2em;
    flex-shrink: 0;
}

.warning-box h4 {
    color: #991b1b;
    font-size: 1.1em;
    margin-bottom: 8px;
}

.warning-box p {
    color: #7f1d1d;
    margin: 0;
}

/* 接受条款框 */
.accept-box {
    display: flex;
    gap: 20px;
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    padding: 25px;
    border-radius: 12px;
    border-left: 4px solid #10b981;
}

.accept-icon {
    background: #10b981;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    font-weight: 700;
    flex-shrink: 0;
}

.accept-content h4 {
    color: #065f46;
    font-size: 1.2em;
    margin-bottom: 8px;
}

.accept-content p {
    color: #047857;
    margin: 0;
}

/* ========================================
   动画定义
   ======================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

/* ========================================
   响应式设计
   ======================================== */
@media (max-width: 768px) {
    .site-title {
        font-size: 2em;
    }

    .card-header h2 {
        font-size: 1.6em;
    }

    .analysis-card {
        padding: 25px;
    }

    .phone-input {
        padding: 16px 110px 16px 15px;
        font-size: 1em;
    }

    .info-cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .banner-content {
        flex-direction: column;
        text-align: center;
    }

    .modal-container {
        width: 95%;
        max-height: 90vh;
    }

    .modal-header h2 {
        font-size: 1.4em;
    }

    .modal-body {
        padding: 20px;
    }

    .value-grid {
        grid-template-columns: 1fr;
    }

    .flow-step {
        flex-direction: column;
        text-align: center;
    }

    .step-number {
        margin: 0 auto 15px;
    }
}

@media (max-width: 480px) {
    .page-wrapper {
        padding: 20px 15px;
    }

    .header-content {
        padding: 30px 20px;
    }

    .site-title {
        font-size: 1.6em;
    }

    .site-subtitle {
        font-size: 1em;
    }

    .header-tags {
        gap: 10px;
    }

    .header-tags .tag {
        font-size: 0.85em;
        padding: 6px 15px;
    }

    .analysis-card {
        padding: 20px;
    }

    .card-header h2 {
        font-size: 1.4em;
    }

    .phone-input {
        padding-right: 100px;
    }

    .input-status {
        font-size: 0.75em;
        padding: 5px 10px;
    }

    .premium-banner {
        padding: 25px 20px;
    }

    .banner-icon {
        font-size: 2.5em;
    }

    .banner-text h3 {
        font-size: 1.2em;
    }

    .info-card {
        padding: 25px 20px;
    }

    .info-card-icon {
        font-size: 3em;
    }

    .modal-header {
        padding: 20px;
    }

    .modal-header h2 {
        font-size: 1.2em;
    }

    .modal-close {
        width: 35px;
        height: 35px;
        font-size: 1.8em;
    }

    .modal-body {
        padding: 20px 15px;
    }

    .modal-section h3 {
        font-size: 1.2em;
    }

    .warning-box {
        flex-direction: column;
        text-align: center;
    }

    .accept-box {
        flex-direction: column;
        text-align: center;
    }

    .accept-icon {
        margin: 0 auto;
    }
}
