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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.header {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    padding: 40px 30px;
    text-align: center;
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 300;
}

.main-content {
    padding: 40px 30px;
}

.input-section {
    margin-bottom: 40px;
}

.input-label {
    display: block;
    font-weight: 500;
    margin-bottom: 12px;
    color: #2c3e50;
    font-size: 1.1rem;
}

.text-input {
    width: 100%;
    padding: 16px;
    border: 2px solid #e0e6ed;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    transition: all 0.3s ease;
    background: #f8fafc;
}

.text-input:focus {
    outline: none;
    border-color: #3498db;
    background: white;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.input-actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    justify-content: flex-end;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.btn-primary {
    background: #3498db;
    color: white;
}

.btn-primary:hover {
    background: #2980b9;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background: #7f8c8d;
}

.result-section {
    margin-bottom: 40px;
}

.result-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hash-result {
    flex: 1;
    padding: 16px;
    background: #f8fafc;
    border: 2px solid #e0e6ed;
    border-radius: 8px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9rem;
    word-break: break-all;
    min-height: 60px;
    display: flex;
    align-items: center;
}

.hash-result.success {
    background: #d5f4e6;
    border-color: #27ae60;
    color: #27ae60;
}

.btn-copy {
    background: #27ae60;
    color: white;
    white-space: nowrap;
}

.btn-copy:hover {
    background: #229954;
}

.btn-copy:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none;
}

.info-section {
    background: #f8fafc;
    padding: 24px;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.info-section h3 {
    color: #2c3e50;
    margin-bottom: 16px;
    font-size: 1.2rem;
}

.info-section p {
    margin-bottom: 16px;
    color: #5a6c7d;
}

.info-section ul {
    list-style: none;
    padding-left: 0;
}

.info-section li {
    padding: 8px 0;
    color: #5a6c7d;
    position: relative;
    padding-left: 20px;
}

.info-section li:before {
    content: "•";
    color: #3498db;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.footer {
    background: #f8fafc;
    padding: 20px;
    text-align: center;
    color: #7f8c8d;
    border-top: 1px solid #e0e6ed;
}

/* 响应式设计 */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .container {
        border-radius: 12px;
    }
    
    .header {
        padding: 30px 20px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .main-content {
        padding: 30px 20px;
    }
    
    .result-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn-copy {
        align-self: flex-end;
        margin-top: 12px;
    }
}

/* 加载动画 */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading::after {
    content: "计算中...";
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}