/* 面相分析V2样式 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

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

header {
    text-align: center;
    color: white;
    margin-bottom: 30px;
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.1em;
    opacity: 0.9;
}

main {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

/* 上传区域 */
.upload-section {
    margin-bottom: 30px;
}

.upload-box {
    border: 3px dashed #ddd;
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.upload-box:hover {
    border-color: #667eea;
    background: #f9f9ff;
}

.upload-icon {
    font-size: 4em;
    display: block;
    margin-bottom: 15px;
}

.upload-placeholder p {
    font-size: 1.2em;
    color: #666;
}

.upload-hint {
    font-size: 0.9em !important;
    color: #999 !important;
    margin-top: 10px;
}

.preview-image {
    max-width: 100%;
    max-height: 400px;
    border-radius: 10px;
}

/* 分析选项 */
.options-section {
    margin-bottom: 30px;
}

.options-section h3 {
    margin: 20px 0 15px;
    color: #333;
}

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

.option-item {
    padding: 15px;
    border: 2px solid #eee;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.option-item:hover {
    border-color: #667eea;
    background: #f9f9ff;
}

.option-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.birth-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.birth-info input,
.birth-info select {
    padding: 12px;
    border: 2px solid #eee;
    border-radius: 8px;
    font-size: 1em;
}

.analyze-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.analyze-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.analyze-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 加载状态 */
.loading-section {
    text-align: center;
    padding: 60px 20px;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 6px solid #f3f3f3;
    border-top: 6px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 结果展示 */
.result-section {
    margin-top: 30px;
}

.result-section h2 {
    color: #333;
    margin-bottom: 25px;
    text-align: center;
}

.result-card {
    background: #f9f9ff;
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 20px;
    border-left: 5px solid #667eea;
}

.result-card h3 {
    color: #667eea;
    margin-bottom: 20px;
}

.analysis-item {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 15px;
}

.analysis-item h4 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.analysis-item p {
    color: #666;
    line-height: 1.6;
    margin: 8px 0;
}

.interpretation {
    color: #764ba2 !important;
    font-weight: 500;
    padding: 10px;
    background: #f0f0ff;
    border-radius: 5px;
    margin-top: 10px !important;
}

.analysis-item ul {
    padding-left: 20px;
}

.analysis-item li {
    color: #666;
    line-height: 1.8;
    margin: 5px 0;
}

.no-data {
    color: #999 !important;
    font-style: italic;
}

/* 页脚 */
footer {
    text-align: center;
    color: white;
    margin-top: 30px;
    padding: 20px;
    opacity: 0.8;
}

/* 响应式设计 */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.8em;
    }
    
    main {
        padding: 20px;
    }
    
    .options-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .birth-info {
        grid-template-columns: 1fr 1fr;
    }
}

