/* 表单相关样式 */

#mainForm {
    position: relative;
    background: rgba(44, 55, 66, 0.92);
    color: #e3e8ee;
    border-radius: 22px;
    box-shadow: 0 8px 32px 0 rgba(44, 77, 111, 0.18);
    padding: 30px 30px 32px;
    width: 90%;
    max-width: 900px;
    margin: 32px auto -18px;
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    animation: fadeInUp 0.7s cubic-bezier(.23, 1.01, .32, 1) 1;
    box-sizing: border-box;
    transition: all 0.3s ease-in-out;
}

/* 按钮样式 */
button,
.row button,
.row [id$='Btn'] {
    background: linear-gradient(90deg, #60a5fa 0%, #818cf8 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 32px;
    font-size: 1.08rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 8px 0 rgba(31, 38, 135, 0.10);
    transition: all 0.3s ease;
    outline: none;
    letter-spacing: 0.02em;
    min-width: 480px;
    max-width: 720px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 1px 0;
}

/* 输入框样式 */
input,
select,
textarea {
    background: rgba(36, 54, 84, 0.92);
    color: #e0e7ef;
    border: 1.5px solid rgba(255, 255, 255, 0.10);
    border-radius: 7px;
    padding: 10px 14px;
    font-size: 1rem;
    margin-bottom: 14px;
    width: 100%;
    box-sizing: border-box;
    outline: none;
    transition: border 0.2s, box-shadow 0.2s, background 0.3s, color 0.3s;
}

/* 价格显示器样式 */
#price-ticker {
    text-align: center;
    font-size: 15px;
    font-weight: 500;
    color: #e0e7ef;
    background: rgba(36, 54, 84, 0.92);
    border-radius: 10px;
    padding: 14px 0 10px 0;
    margin-bottom: 24px;
    margin-top: 18px;
    box-shadow: 0 2px 8px 0 rgba(31, 38, 135, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: background 0.3s, color 0.3s;
    animation: pulse 2s infinite;
}

/* 标签样式 */
label {
    color: #a5b4fc;
    font-size: 1rem;
    margin-bottom: 6px;
    font-weight: 500;
    letter-spacing: 0.01em;
    transition: color 0.3s;
}

/* 布局组件 */
.row {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

h2 {
    color: #60a5fa;
    font-size: 2rem;
    margin-bottom: 22px;
    letter-spacing: 0.03em;
    font-weight: 700;
    text-align: center;
}

/* 结果显示 */
.result {
    background: linear-gradient(90deg, #60a5fa 0%, #818cf8 100%);
    border-radius: 8px;
    padding: 13px 18px;
    color: #fff;
    margin-top: 18px;
    font-weight: 600;
    font-size: 1.08rem;
    box-shadow: 0 2px 8px 0 rgba(31, 38, 135, 0.10);
    border: none;
    animation: fadeInUp 0.6s cubic-bezier(.23,1.01,.32,1) 1;
}

/* 表单输入控件 */
.row label {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    max-width: 600px;
    font-size: 1rem;
    margin-bottom: 0;
    gap: 8px;
}

.row label input[type="text"] {
    width: 110px;
    min-width: 60px;
    margin: 0 8px;
    font-size: 1rem;
    padding: 6px 10px;
    border-radius: 6px;
}

#user-wallet-info {
    margin-left: 8px;
    font-size: 14px;
    color: #666;
    word-break: break-all;
    flex: 1;
}

/* 交互状态 */
button:hover, .row button:hover, .row [id$='Btn']:hover {
    background: linear-gradient(90deg, #818cf8 0%, #60a5fa 100%);
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 4px 16px 0 rgba(31, 38, 135, 0.18);
}

input:focus, select:focus, textarea:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 2px rgba(96,165,250,0.2);
}

.theme-btn:hover::before {
    background: rgba(36, 41, 59, 0.95);
    transform: scale(1.1);
}
