* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Helvetica Neue', Arial, sans-serif, 'Microsoft YaHei', 'PingFang SC';
}

body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-size: 400% 400%;
    animation: gradient 20s ease infinite;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    color: #fff;
    padding: 20px 0;
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.container {
    width: 90%;
    max-width: 700px;
    padding: 20px;
}

/* 头部样式 */
.header {
    text-align: center;
    margin-bottom: 40px;
}

.header h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    background: linear-gradient(45deg, #fff, #f0f8ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 1.2rem;
    margin-bottom: 20px;
    opacity: 0.9;
    font-weight: 300;
}

.description {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 15px;
    margin-top: 20px;
}

.description p {
    margin: 5px 0;
    font-size: 0.95rem;
}

/* 输入区域样式 */
.input-section {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.input-header {
    text-align: center;
    margin-bottom: 25px;
}

.input-header h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.input-guide {
    opacity: 0.8;
    font-size: 1rem;
    line-height: 1.5;
}

label {
    display: block;
    margin-bottom: 12px;
    font-size: 1.1rem;
    font-weight: 500;
}

input {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 12px;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    color: #333;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

input:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
    transform: translateY(-2px);
}

.button-group {
    text-align: center;
    margin-bottom: 20px;
}

button {
    padding: 15px 30px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(45deg, #4CAF50, #45a049);
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
    min-width: 160px;
}

button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4);
}

button:active {
    transform: translateY(-1px);
}

.tips {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* 结果区域样式 */
.result-section {
    display: none;
}

.salary-card {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    padding: 35px;
    width: 100%;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.salary-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #4CAF50, #2196F3, #FF9800);
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.result-header {
    margin-bottom: 25px;
}

.result-header h3 {
    font-size: 1.6rem;
    margin-bottom: 8px;
}

.result-description {
    opacity: 0.8;
    font-size: 1rem;
}

.salary-amount {
    font-size: 4.5rem;
    font-weight: bold;
    margin: 30px 0;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    background: linear-gradient(45deg, #fff, #e8f5e8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

.salary-card.pulse .salary-amount {
    animation: pulse 0.5s ease;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.result-footer {
    margin-top: 25px;
}

.encourage-text {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
    font-size: 1rem;
    line-height: 1.5;
    font-style: italic;
}

.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.edit-btn, .share-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.edit-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.edit-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.share-btn {
    background: linear-gradient(45deg, #2196F3, #1976D2);
    color: white;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(33, 150, 243, 0.4);
}

/* 帮助区域样式 */
.help-section {
    margin-top: 30px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    overflow: hidden;
}

.help-toggle {
    padding: 15px 20px;
    cursor: pointer;
    transition: background 0.3s ease;
    font-weight: 500;
}

.help-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.help-content {
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.help-content h4 {
    margin-bottom: 10px;
    font-size: 1.1rem;
    color: #4CAF50;
}

.help-content ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.help-content li {
    margin-bottom: 8px;
    line-height: 1.5;
}

/* 底部样式 */
.footer {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    opacity: 0.7;
    font-size: 0.95rem;
}

/* 动画效果 */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
    100% {
        transform: translateY(0px);
    }
}

.salary-card {
    animation: float 4s ease-in-out infinite;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        width: 95%;
        padding: 15px;
    }
    
    .header h1 {
        font-size: 2.5rem;
    }
    
    .salary-amount {
        font-size: 3.5rem;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .edit-btn, .share-btn {
        width: 100%;
        max-width: 200px;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 2rem;
    }
    
    .salary-amount {
        font-size: 2.8rem;
    }
    
    .input-section, .salary-card {
        padding: 20px;
    }
}

/* 无障碍支持 */
button:focus, input:focus {
    outline: 3px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

/* 深色主题适配 */
@media (prefers-color-scheme: dark) {
    input {
        background: rgba(255, 255, 255, 0.95);
        color: #333;
    }
}