/* 全局样式 */
body, html {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica, Segoe UI, Arial, Roboto, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft Yahei', sans-serif;
    color: #323233;
    background-color: #f7f8fa;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.page-title {
    text-align: center;
    padding: 20px 0;
    font-size: 24px;
    font-weight: bold;
}

.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 8px 16px;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    cursor: pointer;
    border: 1px solid transparent;
    border-radius: 4px;
    background-color: #1989fa;
    color: #fff;
    text-decoration: none;
}

.btn:hover {
    opacity: 0.8;
}

.btn-primary {
    background-color: #1989fa;
}

.btn-success {
    background-color: #07c160;
}

.btn-danger {
    background-color: #ee0a24;
}

/* 表单样式 */
.form-group {
    margin-bottom: 15px;
}

.form-control {
    display: block;
    width: 100%;
    padding: 8px 12px;
    font-size: 14px;
    line-height: 1.5;
    color: #323233;
    background-color: #fff;
    background-image: none;
    border: 1px solid #dcdee0;
    border-radius: 4px;
    box-sizing: border-box;
}

/* 消息提示样式 */
.message-toast {
    position: fixed;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 20px;
    border-radius: 4px;
    color: #fff;
    font-size: 14px;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    animation: fadeInOut 3s;
}

.message-toast.success {
    background-color: #07c160;
}

.message-toast.error {
    background-color: #ee0a24;
}

@keyframes fadeInOut {
    0% { opacity: 0; }
    10% { opacity: 1; }
    80% { opacity: 1; }
    100% { opacity: 0; }
}

/* 规格选择弹窗 */
.spec-popup {
    padding: 20px;
}

.spec-popup-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
}

.spec-group {
    margin-bottom: 15px;
}

.spec-group-title {
    font-size: 14px;
    color: #646566;
    margin-bottom: 8px;
}

.spec-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.spec-option {
    display: inline-block;
    padding: 6px 12px;
    border: 1px solid #ebedf0;
    border-radius: 4px;
    font-size: 13px;
    color: #323233;
    cursor: pointer;
}

.spec-option.active {
    color: #1989fa;
    border-color: #1989fa;
    background-color: rgba(25, 137, 250, 0.05);
}

.spec-footer {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.spec-price {
    font-size: 18px;
    color: #f44336;
    font-weight: bold;
}

.spec-add-btn {
    background-color: #1989fa;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
} 