/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

.container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    padding: 40px;
}

h1 {
    color: #333;
    text-align: center;
    margin-bottom: 20px;
    font-size: 28px;
}

/* 功能说明 */
.features-info {
    background: #f0f4ff;
    border: 1px solid #c3dafe;
    border-radius: 5px;
    padding: 15px 20px;
    margin-bottom: 30px;
}

.features-info p {
    color: #4c51bf;
    margin-bottom: 10px;
}

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

.features-info li {
    color: #555;
    padding: 5px 0;
    padding-left: 20px;
    position: relative;
}

.features-info li::before {
    content: "✓";
    color: #48bb78;
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* 表单样式 */
.form-group {
    margin-bottom: 25px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
    font-size: 14px;
}

input[type="text"],
input[type="password"],
textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s, box-shadow 0.3s;
    font-family: inherit;
}

input[type="text"]:focus,
input[type="password"]:focus,
textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

textarea {
    resize: vertical;
    min-height: 200px;
}

small {
    display: block;
    margin-top: 5px;
    color: #888;
    font-size: 12px;
}

/* 输入组 */
.input-group {
    display: flex;
    align-items: stretch;
}

.input-prefix {
    background: #f5f5f5;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-right: none;
    border-radius: 5px 0 0 5px;
    color: #888;
    font-size: 14px;
    white-space: nowrap;
    display: flex;
    align-items: center;
}

.input-group input {
    border-radius: 0 5px 5px 0;
}

/* 按钮 */
button {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

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

button:active:not(:disabled) {
    transform: translateY(0);
}

button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* 结果显示 */
.result {
    margin-top: 30px;
    padding: 30px;
    background: #f0fff4;
    border: 1px solid #9ae6b4;
    border-radius: 5px;
}

.success-message h3 {
    color: #276749;
    margin-bottom: 15px;
    font-size: 20px;
}

.success-message p {
    margin-bottom: 10px;
    color: #555;
}

.success-message a {
    color: #667eea;
    word-break: break-all;
}

.success-message button {
    margin-top: 20px;
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
}

/* 错误显示 */
.error {
    margin-top: 20px;
    padding: 15px;
    background: #fff5f5;
    border: 1px solid #fc8181;
    border-radius: 5px;
    color: #c53030;
    text-align: center;
}

/* 响应式设计 */
@media (max-width: 600px) {
    .container {
        padding: 20px;
    }
    
    h1 {
        font-size: 24px;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    .input-prefix {
        border-radius: 5px 5px 0 0;
        border-right: 2px solid #e0e0e0;
        border-bottom: none;
        font-size: 12px;
    }
    
    .input-group input {
        border-radius: 0 0 5px 5px;
    }
}
