* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    background-color: #f5f5f5;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 640px;
    /* max-height: 80vh; */
    max-height: 757px;
    position: relative;
}

.hidden {
    display: none;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 17px 30px;
    border-bottom: 1px solid #f2f2f2;
    flex-shrink: 0;
}

.modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s;
}

.close-btn:hover {
    background-color: #f5f5f5;
    color: #666;
}

.modal-content {
    padding: 30px 32px 0 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
    overflow-y: auto;
}

.action-button {
    height: 92px;
    display: flex;
    align-items: center;
    width: 100%;
    padding: 16px;
    background: linear-gradient(90.92deg, #f4f9ff 4.96%, #f3f8ff 46.06%, #eef5ff 80.69%, #e9f1fe 96.39%);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: left;
    position: relative;
}

.action-button.checked:before {
    content: '';
    position: absolute;
    top: 12px;
    left: 12px;
    width: 18px;
    height: 18px;
    background-image: url('../../images/course/vr/checked.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.action-button.unchecked:before {
    content: '';
    position: absolute;
    top: 12px;
    left: 12px;
    width: 18px;
    height: 18px;
    background-image: url('../../images/course/vr/unchecked.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.action-button-icon {
    width: 70px;
    margin-right: 12px;
}

.action-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.button-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    margin-right: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.button-content {
    flex: 1;
    color: white;
}

.button-title {
    color: #131b26;
    font-family: PingFang SC;
    font-weight: 600;
    font-style: Semibold;
    font-size: 15px;
    line-height: 100%;
    letter-spacing: 0px;
    margin-bottom: 6px;
}

.button-description {
    color: #8a8b99;
    font-family: PingFang SC;
    font-weight: 400;
    font-style: Regular;
    font-size: 13px;
    line-height: 100%;
    letter-spacing: 0px;
}

.button-arrow {
    font-size: 20px;
    color: #a3b9d9;
    margin-left: 16px;
}

.input-section {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
    position: relative;
}

.input-field {
    flex: 1;
    padding: 8px 12px;
    margin-right: 10px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    background-color: #ffffff;
    color: #333;
    font-size: 14px;
}

.input-field.disabled {
    background-color: transparent;
    border-color: transparent;
    color: #ACB4BF;
}

.copy-btn {
    position: absolute;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #3a8bff;
    cursor: pointer;
    font-size: 16px;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s;

    width: 25px;
    position: relative;
    left: -45px;
    top: 12px;
}

.input-field::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.add-btn {
    padding: 8px 16px;
    background-color: transparent;
    border: none;
    border-radius: 6px;
    color: #3a8bff;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.add-btn:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.style-section {
    margin-top: 8px;
}

.style-title {
    font-size: 15px;
    font-weight: 500;
    color: #131b26;
    margin-bottom: 20px;
}

.style-options {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.style-option {
    text-align: center;
    cursor: pointer;
    padding: 18px 17px;
    border: 2px solid #f2f2f2;
    border-radius: 8px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.quarter-circle {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 32px;
    height: 32px;
    background-color: #3a8bff;
    border-radius: 32px 0 0 0;
}

.checkmark {
    position: absolute;
    left: 58%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 18px;
    font-weight: bold;
}

.style-option:hover {
    border-color: #667eea;
    transform: translateY(-2px);
}

.style-option.selected {
    border-color: #667eea;
    background-color: #f8f9ff;
}

.style-option-item {
    flex: 1;
    text-align: center;
}

.style-image {
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

.style-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 21px;
    padding: 24px;
    border-top: 1px solid #f2f2f2;
    flex-shrink: 0;
}

.footer-btn {
    padding: 8px 32px;
    border: none;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.cancel-btn {
    color: #407aec;
    background-color: #ffffff;
    border: 1px solid #407aec;
}

.confirm-btn {
    background: #407aec;
    color: white;
}