/* --- 完整 CSS 代码 --- */
#pm-custom-register-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    /* max-width: 500px; 移除此行以适应双列布局 */
    margin: 40px auto;
    padding: 0; /* 移除外边距 */
    background-color: transparent; /* 移除背景色 */
    border: none; /* 移除边框 */
    border-radius: 0; /* 移除圆角 */
    box-shadow: none; /* 移除阴影 */
    /* max-width 由内部容器控制 */
    max-width: 1100px; /* 设置整体最大宽度 */
}

/* --- 新增：主布局容器 --- */
.pm-register-main-layout {
    display: flex;
    gap: 30px; /* 表单和侧边栏之间的间距 */
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    overflow: hidden; /* 隐藏溢出内容 */
    padding: 30px; /* 内边距 */
}
/* --- 新增样式结束 --- */


/* --- 修改：注册内容区样式 --- */
#pm-register-content {
    flex: 1; /* 占据剩余空间 */
    /* background-color: #f8f9fa; 移除或注释掉背景色 */
    /* border: 1px solid #e9ecef; 移除或注释掉边框 */
    padding: 30px; /* 内边距 */
    border-radius: 8px; /* 圆角 */
    /* box-shadow: 0 4px 6px rgba(0,0,0,0.1); 移除或注释掉阴影 */
    background-color: white; /* 设置白色背景 */
}
/* --- 修改样式结束 --- */


#pm-register-content h2 {
    color: #4069e1;
    font-size: 1.8rem;
    margin-bottom: 10px;
    text-align: center; /* 保持居中 */
}

#pm-register-message {
    /* Styles will be applied dynamically by JS */
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 5px;
    display: none;
}

.pm-success-message {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.pm-error-message {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

/* Reuse the .generate-btn style from your existing page */
#pm-register-btn.generate-btn {
    padding: 12px;
    background: linear-gradient(135deg, #4069e1, #5a70ff);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
    width: 100%; /* Ensure full width */
}

#pm-register-btn.generate-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(64, 105, 225, 0.3);
}

#pm-register-btn.generate-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.pm-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
    font-size: 0.95rem;
}

.pm-form-group input[type="text"],
.pm-form-group input[type="email"],
.pm-form-group input[type="password"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 1rem;
    box-sizing: border-box;
}

.pm-form-group input:focus {
    outline: none;
    border-color: #4069e1;
    box-shadow: 0 0 0 2px rgba(64, 105, 225, 0.1);
}

.pm-form-group small {
    color: #6c757d;
    font-size: 0.85rem;
}

/* --- 新增：注册侧边栏样式 --- */
#pm-register-sidebar {
    flex: 0 0 350px; /* 不收缩，基尺寸 350px */
    background-color: #ffffff; /* 白色背景 */
    padding: 25px; /* 内边距 */
    border-radius: 8px; /* 圆角 */
    box-shadow: 0 2px 4px rgba(0,0,0,0.05); /* 轻微阴影 */
}

.pm-sidebar-content h3 {
    color: #4069e1;
    margin-bottom: 15px;
    font-size: 1.4rem;
    text-align: center; /* 标题居中 */
}

.pm-sidebar-content p {
    margin-bottom: 20px;
    color: #555;
    font-size: 0.95rem;
    line-height: 1.5; /* 增加行高可读性 */
}

/* 步骤列表样式 */
.pm-steps-list {
    list-style: none;
    padding: 0;
    margin-bottom: 25px;
}

.pm-step-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.pm-step-number {
    background-color: #4069e1;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
    flex-shrink: 0; /* 防止数字被压缩 */
    margin-right: 10px;
}

.pm-step-text {
    font-size: 0.95rem;
    color: #444;
    line-height: 1.4; /* 增加行高 */
}

.pm-step-text a {
    color: #0d6efd;
    text-decoration: underline;
}

.pm-step-text a:hover {
    text-decoration: none;
}

/* 定价卡片样式 */
.pm-pricing-card {
    background-color: #eef2ff;
    border: 1px solid #d6ddf5;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    margin-bottom: 25px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.pm-pricing-card h4 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 1.2rem;
}

.pm-price {
    font-size: 2rem;
    font-weight: bold;
    color: #4069e1;
    margin-bottom: 10px;
}

.pm-pricing-card p {
    margin: 0;
    color: #555;
    font-size: 0.95rem;
}

.pm-pricing-card p:last-child {
    margin: 5px 0 0 0;
    color: #6c757d;
    font-size: 0.85rem;
}

/* 好处列表样式 */
.pm-benefits h4 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.1rem;
    text-align: center; /* 标题居中 */
}

.pm-benefits ul {
    list-style: disc;
    padding-left: 20px;
    margin: 0;
    font-size: 0.9rem;
    color: #555;
}

.pm-benefits li {
    margin-bottom: 8px;
    line-height: 1.4; /* 增加行高 */
}
/* --- 新增样式结束 --- */


/* --- 响应式设计 --- */
@media (max-width: 768px) {
    .pm-register-main-layout {
        flex-direction: column; /* 在小屏幕上变为垂直排列 */
        padding: 20px; /* 减小内边距 */
    }

    #pm-register-content,
    #pm-register-sidebar {
        width: 100%; /* 宽度占满 */
        flex: none; /* 不使用 flex 属性 */
    }

    #pm-register-sidebar {
        flex: 0 0 auto; /* 在移动端不固定高度，自动调整 */
    }

    /* 可以进一步调整字体大小等细节 */
    #pm-register-content h2,
    .pm-sidebar-content h3 {
        font-size: 1.5rem; /* 减小标题字体 */
    }

    .pm-price {
        font-size: 1.8rem; /* 减小价格字体 */
    }
}
/* --- 响应式设计结束 --- */