body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #eef2f7;
    margin: 0;
    padding: 40px;
    color: #333;
}

.container {
    max-width: 800px;
    margin: auto;
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

h2 {
    text-align: center;
    color: #3c8dbc;
    margin-top: 0;
}

textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 14px;
    resize: vertical;
}

textarea:focus {
    border-color: #3c8dbc;
    outline: none;
}

/* 按钮布局 */
.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.actions-row {
    display: flex;
    gap: 10px;
    width: 100%;
}

.actions-row button {
    flex: 1;
    padding: 12px 0;
    font-size: 15px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: 0.2s;
}

.actions-row button:hover {
    opacity: 0.9;
}

button {
    background: #3c8dbc;
    color: white;
}

button.secondary {
    background: #f39c12;
    color: white;
}

button.copy {
    background: #00a65a;
    color: white;
    width: 100%;
    padding: 12px 0;
    margin-top: 10px;
}

.result-row {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    align-items: stretch;
}

/* 左：链接 */
#resultLink {
    flex: 2;
}

/* 中：头像 */
.result-avatar {
    width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.result-avatar img {
    width: 120px;
    height: 120px;
    border-radius: 10px; /* 方形 + 微圆角 */
    object-fit: cover;
    border: 1px solid #ddd;
}

/* 右：用户 + 状态 */
.result-right {
    flex: 0.8; /* 稍微收窄 */
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#resultUser, #resultMsg {
    flex: 1;
}

/* 底部 a 标签美化 */
.bottom-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.bottom-links a {
    text-decoration: none;
    color: #3c8dbc;
    font-weight: bold;
    font-size: 14px;
    transition: color 0.2s;
}

.bottom-links a:hover {
    color: #367fa9;
    text-decoration: underline;
}

.desc {
    font-size: 0.9em;
    color: #555;
    text-align: center;
    margin-top: 5px;
}

.toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    padding: 15px 25px;
    border-radius: 8px;
    color: white;
    font-weight: bold;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s, transform 0.5s;
    z-index: 9999;
    max-width: 90%;
    text-align: center;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast.success {
    background-color: #00a65a;
}

.toast.error {
    background-color: #dd4b39;
}
