.phone-analysis-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.phone-analysis-header {
    background: linear-gradient(90deg, #1a2a6c, #b21f1f);
    color: white;
    padding: 25px;
    text-align: center;
    border-radius: 10px 10px 0 0;
}

.phone-analysis-header h2 {
    margin: 0 0 10px 0;
    font-size: 1.8rem;
}

.phone-analysis-content {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

.phone-input-container {
    display: flex;
    gap: 10px;
}

.country-code {
    flex: 0 0 120px;
}

.phone-number {
    flex: 1;
}

/* 美化选择框样式 */
.styled-select {
    position: relative;
    width: 100%;
}

.styled-select select {
    width: 100%;
    padding: 15px 45px 15px 15px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 1.1rem;
    background-color: white;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    transition: all 0.3s;
}

.styled-select::after {
    content: "▼";
    font-size: 0.8rem;
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    color: #666;
    pointer-events: none;
}

.styled-select select:focus {
    border-color: #1a2a6c;
    outline: none;
    box-shadow: 0 0 0 3px rgba(26, 42, 108, 0.2);
}

.styled-select select:hover {
    border-color: #b21f1f;
}

.phone-input-container input {
    width: 100%;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 1.1rem;
    transition: all 0.3s;
}

.phone-input-container input:focus {
    border-color: #1a2a6c;
    outline: none;
    box-shadow: 0 0 0 3px rgba(26, 42, 108, 0.2);
}

.phone-analysis-btn {
    background: linear-gradient(90deg, #1a2a6c, #b21f1f);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 10px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    font-weight: bold;
    letter-spacing: 1px;
}

.phone-analysis-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 15px rgba(0, 0, 0, 0.2);
}

.phone-analysis-result {
    display: none;
    margin-top: 30px;
    animation: fadeIn 0.8s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.result-header {
    text-align: center;
    margin-bottom: 20px;
    color: #1a2a6c;
}

.phone-display {
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
    margin: 15px 0;
    color: #b21f1f;
}

.score-display {
    text-align: center;
    margin: 20px 0;
}

.score {
    font-size: 3rem;
    font-weight: bold;
    color: #1a2a6c;
}

.score-text {
    font-size: 1.1rem;
    color: #666;
    margin-top: 5px;
}

.analysis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.analysis-card {
    background: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    border-left: 4px solid #1a2a6c;
    transition: transform 0.3s;
}

.analysis-card:hover {
    transform: translateY(-5px);
}

.card-title {
    font-size: 1rem;
    color: #1a2a6c;
    margin-bottom: 8px;
    font-weight: bold;
}

.card-content {
    color: #555;
    line-height: 1.6;
}

.recommendation {
    background: linear-gradient(135deg, #fdbb2d, #b21f1f);
    color: white;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
}

.recommendation h3 {
    margin-bottom: 8px;
}

.button-group {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.restart-btn, .consult-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    flex: 1;
    transition: all 0.3s;
}

.restart-btn {
    background: #fdbb2d;
    color: #333;
}

.consult-btn {
    background: #1a2a6c;
    color: white;
}

.consult-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    padding: 25px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: modalFadeIn 0.5s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #777;
}

.consult-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.consult-form input, .consult-form textarea, .consult-form select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.consult-form textarea {
    height: 100px;
    resize: vertical;
}

.submit-btn {
    background: #1a2a6c;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
}

.alert {
    padding: 10px;
    border-radius: 5px;
    margin: 10px 0;
    text-align: center;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

@media (max-width: 600px) {
    .phone-input-container {
        flex-direction: column;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    .analysis-grid {
        grid-template-columns: 1fr;
    }
}