/* 全局样式 - 深色主题 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --accent-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --dark-bg: #0a0e27;
    --card-bg: rgba(255, 255, 255, 0.05);
    --text-light: #ffffff;
    --text-gray: #b8c5d6;
}

body {
    font-family: 'Microsoft YaHei', '微软雅黑', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-light);
    background: var(--dark-bg);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* 动态渐变背景 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at top, rgba(102, 126, 234, 0.15), transparent 50%),
                radial-gradient(ellipse at bottom, rgba(245, 87, 108, 0.15), transparent 50%);
    z-index: 0;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.1); }
}

/* 浮动粒子背景 */
.particle-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: linear-gradient(135deg, #667eea, #f093fb);
    border-radius: 50%;
    animation: float 20s infinite;
    opacity: 0.6;
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
}

@keyframes float {
    0%, 100% { transform: translateY(0) translateX(0); }
    25% { transform: translateY(-100px) translateX(50px); }
    50% { transform: translateY(-200px) translateX(-30px); }
    75% { transform: translateY(-100px) translateX(-80px); }
}

/* 容器 */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 10;
}

/* 头部样式 */
header {
    text-align: center;
    padding: 60px 0 40px;
    animation: fadeInDown 1s ease-out;
}

header h1 {
    font-size: 4rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
    letter-spacing: 3px;
    animation: glow 3s ease-in-out infinite;
    position: relative;
    display: inline-block;
}

@keyframes glow {
    0%, 100% { filter: drop-shadow(0 0 20px rgba(102, 126, 234, 0.5)); }
    50% { filter: drop-shadow(0 0 40px rgba(245, 87, 108, 0.8)); }
}

header h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--secondary-gradient);
    border-radius: 2px;
}

.slogan {
    font-size: 1.2rem;
    color: var(--text-gray);
    font-weight: 300;
    margin-top: 20px;
    opacity: 0.9;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 主要内容 */
main {
    animation: fadeInUp 1s ease-out 0.3s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 靓号广告 - 新风格 */
.premium-number-ad {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(245, 87, 108, 0.2) 100%);
    border: 2px solid transparent;
    background-clip: padding-box;
    border-radius: 25px;
    padding: 30px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.2);
    animation: borderGlow 3s infinite;
}

.premium-number-ad::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--primary-gradient);
    border-radius: 25px;
    z-index: -1;
    animation: rotate 4s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes borderGlow {
    0%, 100% { box-shadow: 0 8px 32px rgba(102, 126, 234, 0.2), 0 0 0 rgba(102, 126, 234, 0.4); }
    50% { box-shadow: 0 8px 32px rgba(245, 87, 108, 0.3), 0 0 20px rgba(245, 87, 108, 0.6); }
}

.ad-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.ad-icon {
    font-size: 3.5rem;
    animation: bounce 2s infinite;
}

.ad-text {
    flex: 1;
    min-width: 250px;
}

.ad-text h3 {
    color: var(--text-light);
    font-size: 1.6rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.ad-text p {
    color: var(--text-gray);
    font-size: 1rem;
}

.ad-button {
    background: var(--secondary-gradient);
    color: #fff;
    padding: 16px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(245, 87, 108, 0.4);
    white-space: nowrap;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.ad-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.ad-button:hover::before {
    left: 100%;
}

.ad-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(245, 87, 108, 0.6);
}

/* 搜索框 - 霓虹灯效果 */
.search-box {
    background: var(--card-bg);
    border-radius: 30px;
    padding: 60px 40px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.search-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(102, 126, 234, 0.1), transparent 30%);
    animation: rotateGradient 6s linear infinite;
}

@keyframes rotateGradient {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.search-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.3);
    border-color: rgba(102, 126, 234, 0.3);
}

.search-box > * {
    position: relative;
    z-index: 1;
}

.search-box h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.search-box > p {
    color: var(--text-gray);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.input-group {
    display: flex;
    max-width: 650px;
    margin: 30px auto;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 60px;
    padding: 8px;
    border: 2px solid rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.input-group:focus-within {
    border-color: rgba(102, 126, 234, 0.8);
    box-shadow: 0 0 30px rgba(102, 126, 234, 0.4);
}

input[type="text"] {
    flex: 1;
    padding: 18px 30px;
    border: none;
    background: transparent;
    font-size: 1.1rem;
    color: var(--text-light);
    outline: none;
}

input[type="text"]::placeholder {
    color: rgba(184, 197, 214, 0.5);
}

button {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 18px 45px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

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;
}

button:hover::before {
    width: 300px;
    height: 300px;
}

button:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
}

button:active {
    transform: scale(0.98);
}

.tips {
    margin-top: 20px;
    font-size: 0.95rem;
    color: var(--text-gray);
    opacity: 0.8;
}

/* 特性卡片 - 3D效果 */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
    perspective: 1000px;
}

.feature-item {
    background: var(--card-bg);
    padding: 40px 30px;
    border-radius: 25px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.feature-item:hover::before {
    left: 100%;
}

.feature-item:hover {
    transform: translateY(-15px) rotateX(5deg);
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.3);
    border-color: rgba(102, 126, 234, 0.5);
}

.feature-item:nth-child(1):hover {
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.4);
}

.feature-item:nth-child(2):hover {
    box-shadow: 0 20px 60px rgba(245, 87, 108, 0.4);
}

.feature-item:nth-child(3):hover {
    box-shadow: 0 20px 60px rgba(79, 172, 254, 0.4);
}

.feature-item:nth-child(4):hover {
    box-shadow: 0 20px 60px rgba(240, 147, 251, 0.4);
}

.feature-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    display: inline-block;
    animation: floatIcon 3s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(102, 126, 234, 0.5));
}

.feature-item:nth-child(1) .feature-icon { animation-delay: 0s; }
.feature-item:nth-child(2) .feature-icon { animation-delay: 0.5s; }
.feature-item:nth-child(3) .feature-icon { animation-delay: 1s; }
.feature-item:nth-child(4) .feature-icon { animation-delay: 1.5s; }

@keyframes floatIcon {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(5deg); }
}

.feature-item h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.feature-item p {
    color: var(--text-gray);
    line-height: 1.8;
    font-size: 0.95rem;
}

/* 免责声明 - 新风格 */
.disclaimer {
    background: linear-gradient(135deg, rgba(245, 87, 108, 0.1), rgba(102, 126, 234, 0.1));
    border-left: 4px solid;
    border-image: var(--secondary-gradient) 1;
    border-radius: 15px;
    padding: 25px;
    margin: 40px 0;
    backdrop-filter: blur(10px);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 rgba(245, 87, 108, 0.4); }
    50% { box-shadow: 0 0 20px rgba(245, 87, 108, 0.4); }
}

.disclaimer p {
    color: var(--text-gray);
    font-size: 0.9rem;
    line-height: 1.8;
    margin: 0;
}

.disclaimer strong {
    background: var(--secondary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

/* 结果页样式 */
.result-page .result-box {
    background: var(--card-bg);
    border-radius: 30px;
    padding: 50px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 1s ease-out;
}

.phone-display {
    text-align: center;
    margin-bottom: 45px;
    padding-bottom: 30px;
    border-bottom: 2px solid rgba(102, 126, 234, 0.2);
}

.phone-display h2 {
    color: var(--text-light);
    margin-bottom: 25px;
    font-size: 1.8rem;
    font-weight: 600;
}

.phone-display h2 span {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2.2rem;
    letter-spacing: 3px;
    font-weight: 700;
}

.overall-score {
    display: inline-block;
    text-align: center;
    background: var(--primary-gradient);
    padding: 40px 60px;
    border-radius: 25px;
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
    animation: scoreFloat 3s ease-in-out infinite;
    position: relative;
}

@keyframes scoreFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.overall-score::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--primary-gradient);
    border-radius: 25px;
    z-index: -1;
    filter: blur(10px);
    opacity: 0.5;
}

.score-title {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 10px;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.score-value {
    font-size: 4.5rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.score-text {
    font-size: 1.8rem;
    color: #fff;
    margin-top: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.detail-analysis {
    margin-bottom: 45px;
}

.detail-analysis h3 {
    color: var(--text-light);
    margin-bottom: 30px;
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.analysis-item {
    margin-bottom: 30px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.analysis-item:hover {
    transform: translateX(10px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(102, 126, 234, 0.3);
}

.analysis-title {
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-light);
    font-size: 1.2rem;
}

.analysis-bar {
    height: 14px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 12px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.bar-fill {
    height: 100%;
    background: var(--primary-gradient);
    border-radius: 10px;
    transition: width 2s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fillBar 2s ease-out;
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.6);
}

@keyframes fillBar {
    from { width: 0 !important; }
}

.analysis-text {
    font-size: 0.95rem;
    color: var(--text-gray);
    line-height: 1.6;
}

.number-meaning {
    margin-bottom: 45px;
}

.number-meaning h3 {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--secondary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.number-analysis {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(245, 87, 108, 0.1));
    padding: 25px;
    border-radius: 20px;
    border-left: 4px solid;
    border-image: var(--primary-gradient) 1;
    line-height: 1.9;
    color: var(--text-gray);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

/* 估价显示 */
.price-estimation {
    margin-bottom: 45px;
    text-align: center;
    padding: 40px;
    background: linear-gradient(135deg, rgba(245, 87, 108, 0.1), rgba(240, 147, 251, 0.1));
    border-radius: 25px;
    border: 2px dashed rgba(245, 87, 108, 0.3);
    position: relative;
    overflow: hidden;
}

.price-estimation::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(245, 87, 108, 0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.price-estimation h3 {
    color: var(--text-light);
    margin-bottom: 25px;
    font-size: 1.8rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.price-value {
    font-size: 3.5rem;
    font-weight: 800;
    background: var(--secondary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 25px 0;
    filter: drop-shadow(0 0 10px rgba(245, 87, 108, 0.3));
    position: relative;
    z-index: 1;
}

.price-range {
    font-size: 1rem;
    color: var(--text-gray);
    margin-top: 15px;
    position: relative;
    z-index: 1;
}

.price-factors {
    margin-top: 25px;
    text-align: left;
    display: inline-block;
    position: relative;
    z-index: 1;
}

.price-factors li {
    margin: 10px 0;
    color: var(--text-gray);
    font-size: 0.95rem;
}

.price-factors p {
    color: rgba(184, 197, 214, 0.6);
    font-size: 0.85rem;
}

/* 按钮组 */
.actions {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 45px;
    flex-wrap: wrap;
}

.btn-secondary,
.btn-primary {
    padding: 16px 40px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.2);
}

.btn-primary {
    background: var(--secondary-gradient);
    color: #fff;
    box-shadow: 0 4px 15px rgba(245, 87, 108, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(245, 87, 108, 0.6);
}

/* 页脚 */
footer {
    text-align: center;
    padding: 40px 0;
    color: var(--text-gray);
    font-size: 0.9rem;
    position: relative;
    z-index: 10;
    margin-top: 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer p {
    margin: 5px 0;
    opacity: 0.8;
}

/* 响应式设计 */
@media (max-width: 768px) {
    header h1 {
        font-size: 2.5rem;
    }
    
    .slogan {
        font-size: 1rem;
    }
    
    .premium-number-ad {
        padding: 25px 20px;
    }
    
    .ad-content {
        flex-direction: column;
        text-align: center;
    }
    
    .ad-text h3 {
        font-size: 1.3rem;
    }
    
    .ad-button {
        width: 100%;
    }
    
    .search-box {
        padding: 40px 25px;
    }
    
    .search-box h2 {
        font-size: 2rem;
    }
    
    .input-group {
        flex-direction: column;
        border-radius: 20px;
    }
    
    input[type="text"] {
        border-radius: 15px;
        margin-bottom: 10px;
    }
    
    button {
        border-radius: 15px;
        width: 100%;
    }
    
    .features {
        grid-template-columns: 1fr;
    }
    
    .result-page .result-box {
        padding: 30px 20px;
    }
    
    .overall-score {
        padding: 30px 40px;
    }
    
    .score-value {
        font-size: 3.5rem;
    }
    
    .price-value {
        font-size: 2.8rem;
    }
    
    .actions {
        flex-direction: column;
    }
    
    .actions button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 2rem;
        letter-spacing: 1px;
    }
    
    .search-box {
        padding: 30px 20px;
    }
    
    .ad-icon {
        font-size: 2.5rem;
    }
    
    .feature-icon {
        font-size: 3rem;
    }
    
    .overall-score {
        padding: 25px 30px;
    }
    
    .score-value {
        font-size: 3rem;
    }
}
